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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl

Issue 2656163005: Convert RuntimeEnabledFeatures.in config file to JSON format. (Closed)
Patch Set: Rebase and add MediaCaptureDepth, MojoJS Created 3 years, 10 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 | « third_party/WebKit/Source/build/scripts/scripts.gni ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl
index d32917213bfa708058aea44c1774d38cc1b72205..847f6150667fcda0980c897a59f7fa60db492e52 100644
--- a/third_party/WebKit/Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl
@@ -39,17 +39,8 @@ class PLATFORM_EXPORT RuntimeEnabledFeatures {
{% if feature.custom %}
static bool {{feature.first_lowered_name}}Enabled();
{% else %}
- {% if feature.condition %}
-#if ENABLE({{feature.condition}})
- {% endif %}
static void set{{feature.name}}Enabled(bool isEnabled) { is{{feature.name}}Enabled = isEnabled; }
static bool {{feature.first_lowered_name}}Enabled() { return {{feature.enabled_condition}}; }
- {% if feature.condition %}
-#else
- static void set{{feature.name}}Enabled(bool) { }
- static bool {{feature.first_lowered_name}}Enabled() { return false; }
-#endif
- {% endif %}
{% endif %}
{% endfor %}
« no previous file with comments | « third_party/WebKit/Source/build/scripts/scripts.gni ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698