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

Unified Diff: content/renderer/battery_status/battery_status_dispatcher.cc

Issue 613203002: Have PlatformEventObserver implementations orderly stop on destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up a comment. Created 6 years, 3 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
Index: content/renderer/battery_status/battery_status_dispatcher.cc
diff --git a/content/renderer/battery_status/battery_status_dispatcher.cc b/content/renderer/battery_status/battery_status_dispatcher.cc
index 3e27c129439a54b8bfd651cb029ba8aaf641b263..3f260ed0ab9e8f5bdd2c57d353d266da2108c656 100644
--- a/content/renderer/battery_status/battery_status_dispatcher.cc
+++ b/content/renderer/battery_status/battery_status_dispatcher.cc
@@ -15,6 +15,7 @@ BatteryStatusDispatcher::BatteryStatusDispatcher(RenderThread* thread)
}
BatteryStatusDispatcher::~BatteryStatusDispatcher() {
+ StopIfObserving();
}
bool BatteryStatusDispatcher::OnControlMessageReceived(
« no previous file with comments | « content/public/renderer/platform_event_observer.h ('k') | content/renderer/device_sensors/device_sensor_event_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698