Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3113)

Unified Diff: device/battery/battery_monitor_impl.h

Issue 2398833003: Fix double-delete in BatteryMonitor. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/battery/battery_monitor_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_monitor_impl.h
diff --git a/device/battery/battery_monitor_impl.h b/device/battery/battery_monitor_impl.h
index e1a23a4b24ebc74c0a8a4fc8e8533a330ee0de82..e6af4b53953057710d10a60c74507fb0dbc13ad8 100644
--- a/device/battery/battery_monitor_impl.h
+++ b/device/battery/battery_monitor_impl.h
@@ -11,6 +11,7 @@
#include "device/battery/battery_export.h"
#include "device/battery/battery_monitor.mojom.h"
#include "device/battery/battery_status_service.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
namespace device {
@@ -29,6 +30,7 @@ class BatteryMonitorImpl : public BatteryMonitor {
void DidChange(const BatteryStatus& battery_status);
void ReportStatus();
+ mojo::StrongBindingPtr<BatteryMonitor> binding_;
std::unique_ptr<BatteryStatusService::BatteryUpdateSubscription>
subscription_;
QueryNextStatusCallback callback_;
« no previous file with comments | « no previous file | device/battery/battery_monitor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698