Make UpdateAttempter own debugd_proxy.
It's the only class using this proxy.
Test: mma
Bug: 28800946
Change-Id: I1a98b417f213db5d47de451390367ca4975db4b0
diff --git a/update_attempter.h b/update_attempter.h
index 58a41d3..5dbe3dd 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -68,8 +68,7 @@
UpdateAttempter(SystemState* system_state,
CertificateChecker* cert_checker,
- LibCrosProxy* libcros_proxy,
- org::chromium::debugdProxyInterface* debugd_proxy);
+ LibCrosProxy* libcros_proxy);
~UpdateAttempter() override;
// Further initialization to be done post construction.
@@ -507,7 +506,7 @@
std::string forced_app_version_;
std::string forced_omaha_url_;
- org::chromium::debugdProxyInterface* debugd_proxy_;
+ std::unique_ptr<org::chromium::debugdProxyInterface> debugd_proxy_;
DISALLOW_COPY_AND_ASSIGN(UpdateAttempter);
};