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

Unified Diff: content/public/common/content_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/public/common/content_features.cc
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index 14bd9de4a2447463d70094bdccd31a3e7f0a86c8..c9379c8347f37a21151e4d46fcb6667a33817a05 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -9,6 +9,10 @@ namespace features {
// All features in alphabetical order.
+// Blocks scripts inserted by document.write if the connection is 2g-esque.
+const base::Feature kBlockDocWriteIfEffectively2G{
+ "BlockDocWriteIfEffectively2G", base::FEATURE_DISABLED_BY_DEFAULT};
+
// Enables brotli "Accept-Encoding" advertising and "Content-Encoding" support.
// Brotli format specification: http://www.ietf.org/id/draft-alakuijala-brotli
const base::Feature kBrotliEncoding{"brotli-encoding",

Powered by Google App Engine
This is Rietveld 408576698