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

Unified Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

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: Rename Created 4 years, 4 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: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
diff --git a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
index a51c1ff626f4adafb40ae691a74bbd995477d4d5..70ebd6a7ea04d22a8d93cf29b1823022552e0af5 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -70,6 +70,11 @@ void WebRuntimeFeatures::enableAudioOutputDevices(bool enable)
RuntimeEnabledFeatures::setAudioOutputDevicesEnabled(enable);
}
+void WebRuntimeFeatures::enableBlockDocWriteIfEffectively2G(bool enable)
+{
+ RuntimeEnabledFeatures::setBlockDocWriteIfEffectively2GEnabled(enable);
+}
+
void WebRuntimeFeatures::enableCanvas2dImageChromium(bool enable)
{
RuntimeEnabledFeatures::setCanvas2dImageChromiumEnabled(enable);

Powered by Google App Engine
This is Rietveld 408576698