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

Unified Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 18578007: Add a public API to enable/disable blink runtime features by name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Require a 'command_line_flag' option in RuntimeEnabledFeatures.in Created 7 years, 5 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
« no previous file with comments | « no previous file | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
index bd951b514a74af1e89971aa5d5a0ae7f63e57a63..9084d0bcc6034fee733f96e462284445ae306e57 100644
--- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -57,6 +57,11 @@ void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable)
RuntimeEnabledFeatures::setTestFeaturesEnabled(enable);
}
+bool WebRuntimeFeatures::setFeatureEnabled(const WebString& feature, bool enable)
+{
+ return RuntimeEnabledFeatures::setFeatureEnabled(feature, enable);
+}
+
void WebRuntimeFeatures::enableApplicationCache(bool enable)
{
RuntimeEnabledFeatures::setApplicationCacheEnabled(enable);
« no previous file with comments | « no previous file | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698