| Index: third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/user-agent-override.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/user-agent-override.html b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/user-agent-override.html
|
| index 1a55f4a16864a41d393c95f15c501eca3b334e0f..8393d89a0911f31f5e8db00931aa8c719ed399ba 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/user-agent-override.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/user-agent-override.html
|
| @@ -48,8 +48,7 @@ function test()
|
| var originalUserAgent = navigator.userAgent;
|
|
|
| InspectorTest.addResult("Enable emulation and set User-Agent override");
|
| - WebInspector.overridesSupport.setEmulationEnabled(true);
|
| - WebInspector.overridesSupport.settings.userAgent.set(userAgentString);
|
| + WebInspector.multitargetNetworkManager.setUserAgentOverride(userAgentString);
|
|
|
| InspectorTest.registerServiceWorker(scriptURL, scope)
|
| .then(waitForTarget)
|
| @@ -58,7 +57,7 @@ function test()
|
| .then(function(msg) {
|
| InspectorTest.addResult("Overriden user agent: " + msg.messageText);
|
| InspectorTest.addResult("Disable emulation");
|
| - WebInspector.overridesSupport.setEmulationEnabled(false);
|
| + WebInspector.multitargetNetworkManager.setUserAgentOverride("");
|
| return InspectorTest.unregisterServiceWorker(scope);
|
| })
|
| .then(function() {
|
|
|