| Index: third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp b/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
|
| index 06809f857e5e2330e1f938bcd59eb1161a0632f7..6a5f39d0b8ccc3fda0087f18cc2ba87c3a87491b 100644
|
| --- a/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
|
| +++ b/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
|
| @@ -104,6 +104,15 @@ void NetworkStateNotifier::removeObserver(NetworkStateObserver* observer, Execut
|
| void NetworkStateNotifier::setTestUpdatesOnly(bool updatesOnly)
|
| {
|
| ASSERT(isMainThread());
|
| + MutexLocker locker(m_mutex);
|
| +
|
| + // Reset state to default when entering or leaving test mode.
|
| + if (updatesOnly != m_testUpdatesOnly) {
|
| + m_isOnLine = true;
|
| + m_type = WebConnectionTypeOther;
|
| + m_maxBandwidthMbps = std::numeric_limits<double>::infinity();
|
| + }
|
| +
|
| m_testUpdatesOnly = updatesOnly;
|
| }
|
|
|
|
|