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

Unified Diff: content/child/runtime_features.cc

Issue 2279543004: [DocWriteBlocking] Add feature to block doc.written scripts if 2g-like network (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added helper method: isConnectionEffectively2G Created 4 years, 3 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: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 2de3be63593a794fc4bb18bc7830f8a920e39b6c..6f9c0d43c4059c64f0840aa218d048014e2e2a3d 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -240,6 +240,10 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
WebRuntimeFeatures::enableReloadwithoutSubResourceCacheRevalidation(true);
}
+ if (base::FeatureList::IsEnabled(features::kBlockDocWriteIfEffectively2G)) {
+ WebRuntimeFeatures::enableBlockDocWriteIfEffectively2G(true);
+ }
+
if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator))
WebRuntimeFeatures::enableDocumentWriteEvaluator(true);
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('J')

Powered by Google App Engine
This is Rietveld 408576698