| 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 2a6f271c004709f3ca84a15e11c686216cd38b08..b366d19c0f8ec7ba6d30e0a18f6afa51cfb73150 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, &m_notifier, observerToAdd, getExecutionContext()));
|
| + observer->setNotificationCallback(bind(&NetworkStateNotifier::addObserver, unretained(&m_notifier), unretained(observerToAdd), getExecutionContext()));
|
| }
|
|
|
| void removeObserverOnNotification(StateObserver* observer, StateObserver* observerToRemove)
|
| {
|
| - observer->setNotificationCallback(bind(&NetworkStateNotifier::removeObserver, &m_notifier, observerToRemove, getExecutionContext()));
|
| + observer->setNotificationCallback(bind(&NetworkStateNotifier::removeObserver, unretained(&m_notifier), unretained(observerToRemove), getExecutionContext()));
|
| }
|
|
|
| bool verifyObservations(const StateObserver& observer, WebConnectionType type, double maxBandwidthMbps)
|
|
|