| Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| index 77a7519923c8cab78ee069ad832dccf75bf690e6..9cfa91a3c0ad2382dc369a6fe010894e4352f515 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| @@ -185,8 +185,6 @@ bool shouldDisallowFetchForMainFrameScript(ResourceRequest& request,
|
| networkStateNotifier().connectionType() == WebConnectionTypeCellular2G;
|
| WebEffectiveConnectionType effectiveConnection =
|
| document.frame()->client()->getEffectiveConnectionType();
|
| - const bool is2GOrLike2G =
|
| - is2G || isConnectionEffectively2G(effectiveConnection);
|
|
|
| return document.settings()
|
| ->getDisallowFetchForDocWrittenScriptsInMainFrame() ||
|
| @@ -195,7 +193,7 @@ bool shouldDisallowFetchForMainFrameScript(ResourceRequest& request,
|
| is2G) ||
|
| (document.settings()
|
| ->getDisallowFetchForDocWrittenScriptsInMainFrameIfEffectively2G() &&
|
| - is2GOrLike2G);
|
| + isConnectionEffectively2G(effectiveConnection));
|
| }
|
|
|
| } // namespace
|
|
|