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

Unified Diff: public/web/WebRuntimeFeatures.h

Issue 890723004: Allow setting runtime-enabled features from a string. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | « Source/web/WebRuntimeFeatures.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebRuntimeFeatures.h
diff --git a/public/web/WebRuntimeFeatures.h b/public/web/WebRuntimeFeatures.h
index 79c4125b54a6b1384ee9bb0dbf1cd0ea131101b0..5a2e88ab300812baec31613661c806ad087b05ae 100644
--- a/public/web/WebRuntimeFeatures.h
+++ b/public/web/WebRuntimeFeatures.h
@@ -32,6 +32,7 @@
#define WebRuntimeFeatures_h
#include "../platform/WebCommon.h"
+#include "../platform/WebString.h"
namespace blink {
@@ -42,6 +43,10 @@ public:
BLINK_EXPORT static void enableExperimentalFeatures(bool);
BLINK_EXPORT static void enableTestOnlyFeatures(bool);
+ // Enables a feature by its string identifier from
+ // RuntimeEnabledFeatures.in.
+ BLINK_EXPORT static void enableFeatureFromString(const WebString& name, bool enable);
+
BLINK_EXPORT static void enableApplicationCache(bool);
BLINK_EXPORT static void enableDatabase(bool);
« no previous file with comments | « Source/web/WebRuntimeFeatures.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698