Commit 96a3b4c5 authored by eustas's avatar eustas Committed by Commit bot

DevTools: NetworkConditionsEmulation: fix interpretation of incorrect settings.

BUG=456324

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

Cr-Commit-Position: refs/heads/master@{#322568}
parent d7aaa9e0
...@@ -35,6 +35,6 @@ DevToolsNetworkConditions::~DevToolsNetworkConditions() { ...@@ -35,6 +35,6 @@ DevToolsNetworkConditions::~DevToolsNetworkConditions() {
} }
bool DevToolsNetworkConditions::IsThrottling() const { bool DevToolsNetworkConditions::IsThrottling() const {
return (latency_ != 0) || (download_throughput_ != 0.0) || return !offline_ && ((latency_ != 0) || (download_throughput_ != 0.0) ||
(upload_throughput_ != 0); (upload_throughput_ != 0));
} }
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