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

Unified Diff: third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp

Issue 2049003002: Wrap GCed raw pointer parameters of WTF::bind with Persistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
diff --git a/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp b/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
index 92f14b330ea9ed6e84e4b5afcdbaac15b71a549b..6efc1d2a4988b0bc8ee9d9944b52706dbad0f68a 100644
--- a/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
+++ b/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
@@ -24,7 +24,7 @@ BatteryDispatcher::BatteryDispatcher()
void BatteryDispatcher::queryNextStatus()
{
- m_monitor->QueryNextStatus(createBaseCallback(bind(&BatteryDispatcher::onDidChange, this)));
+ m_monitor->QueryNextStatus(createBaseCallback(bind(&BatteryDispatcher::onDidChange, wrapPersistent(this))));
}
void BatteryDispatcher::onDidChange(device::blink::BatteryStatusPtr batteryStatus)

Powered by Google App Engine
This is Rietveld 408576698