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

Unified Diff: third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js

Issue 2087293003: [DevTools] Network.emulateNetworkConditions now affects NetworkStateNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browser test 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/LayoutTests/netinfo/resources/netinfo_common.js
diff --git a/third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js b/third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js
index efaa164b0623189666756b98673d44213f06bb8d..326ce6413af4a240a15d61ef0baf044006cae0bf 100644
--- a/third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js
+++ b/third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js
@@ -8,12 +8,11 @@ var newDownlinkMax = 2.0;
// Suppress connection messages information from the host.
if (window.internals) {
- internals.setNetworkStateNotifierTestOnly(true);
- internals.setNetworkConnectionInfo(initialType, initialDownlinkMax);
+ internals.setNetworkConnectionInfoOverride(true, initialType, initialDownlinkMax);
// Reset the state of the singleton network state notifier.
window.addEventListener('beforeunload', function() {
- internals.setNetworkStateNotifierTestOnly(false);
+ internals.clearNetworkConnectionInfoOverride();
}, false);
}

Powered by Google App Engine
This is Rietveld 408576698