| 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)
|
|
|