Commit 65535a33 authored by eustas@chromium.org's avatar eustas@chromium.org

DevTools: quick fix for NetworkAgent.emulateNetworkConditions.

Recently protocol was changed, but invocation remained unchanged.

BUG=245436
TBR=vsevik@chromium.org
NOTRY=true

Review URL: https://codereview.chromium.org/336393002

git-svn-id: svn://svn.chromium.org/blink/trunk@176316 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 05c2944f
......@@ -823,13 +823,13 @@ WebInspector.OverridesSupport.prototype = {
_networkConditionsChanged: function()
{
if (!this.settings.emulateNetworkConditions.get()) {
NetworkAgent.emulateNetworkConditions([], 0, false);
NetworkAgent.emulateNetworkConditions([], 0, false, 0, 0, 0);
} else {
var domainsString = this.settings.networkConditionsDomains.get().trim();
var domains = domainsString ? domainsString.split(",").map(function (s) { return s.trim(); }) : [];
var throughput = this.settings.networkConditionsThroughput.get();
var offline = !throughput;
NetworkAgent.emulateNetworkConditions(domains, throughput, offline);
NetworkAgent.emulateNetworkConditions(domains, throughput, offline, 0, throughput, throughput);
}
this.maybeHasActiveOverridesChanged();
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment