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

Unified Diff: third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp

Issue 1916283003: [K6] Replace bind() + GCed pointers with retainedRef() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Kuroneko_5c
Patch Set: Rebase Created 4 years, 8 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/core/page/NetworkStateNotifierTest.cpp
diff --git a/third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp b/third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp
index b366d19c0f8ec7ba6d30e0a18f6afa51cfb73150..53350009208242ff4c439cf2695194959c17af42 100644
--- a/third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp
+++ b/third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp
@@ -119,12 +119,12 @@ protected:
void addObserverOnNotification(StateObserver* observer, StateObserver* observerToAdd)
{
- observer->setNotificationCallback(bind(&NetworkStateNotifier::addObserver, unretained(&m_notifier), unretained(observerToAdd), getExecutionContext()));
+ observer->setNotificationCallback(bind(&NetworkStateNotifier::addObserver, unretained(&m_notifier), unretained(observerToAdd), retainedRef(getExecutionContext())));
}
void removeObserverOnNotification(StateObserver* observer, StateObserver* observerToRemove)
{
- observer->setNotificationCallback(bind(&NetworkStateNotifier::removeObserver, unretained(&m_notifier), unretained(observerToRemove), getExecutionContext()));
+ observer->setNotificationCallback(bind(&NetworkStateNotifier::removeObserver, unretained(&m_notifier), unretained(observerToRemove), retainedRef(getExecutionContext())));
}
bool verifyObservations(const StateObserver& observer, WebConnectionType type, double maxBandwidthMbps)
« no previous file with comments | « third_party/WebKit/Source/core/loader/BeaconLoader.cpp ('k') | third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698