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

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

Issue 1635593004: Rename Experimental Framework classes and concepts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
Index: third_party/WebKit/Source/build/scripts/templates/OriginTrials.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/ExperimentalFeatures.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/OriginTrials.h.tmpl
similarity index 77%
rename from third_party/WebKit/Source/build/scripts/templates/ExperimentalFeatures.h.tmpl
rename to third_party/WebKit/Source/build/scripts/templates/OriginTrials.h.tmpl
index c44d07b7d02995a36959428ae428c54182c20da3..f49790ed580e176c09d93000e3e703397add34a9 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ExperimentalFeatures.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/OriginTrials.h.tmpl
@@ -1,8 +1,8 @@
{% from 'macros.tmpl' import license %}
{{license()}}
-#ifndef ExperimentalFeatures_h
-#define ExperimentalFeatures_h
+#ifndef OriginTrials_h
+#define OriginTrials_h
#include "core/CoreExport.h"
#include "wtf/text/WTFString.h"
@@ -14,20 +14,20 @@ class ExecutionContext;
// A class that stores dynamic tests for experimental features which can be
// enabled through the experimental framework via API keys.
-class CORE_EXPORT ExperimentalFeatures {
+class CORE_EXPORT OriginTrials {
public:
{% for feature in features %}
- {% if feature.api_name %}
+ {% if feature.origin_trial_feature_name %}
static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executionContext, String& errorMessage);
static bool {{feature.first_lowered_name}}Enabled(ExecutionContext* executionContext);
{% endif %}
{% endfor %}
private:
- ExperimentalFeatures() { }
+ OriginTrials() { }
{% for feature in features %}
- {% if feature.api_name %}
+ {% if feature.origin_trial_feature_name %}
static bool {{feature.first_lowered_name}}EnabledImpl(ExecutionContext* executionContext, String* errorMessage);
{% endif %}
{% endfor %}
@@ -35,4 +35,4 @@ private:
} // namespace blink
-#endif // ExperimentalFeatures_h
+#endif // OriginTrials_h
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698