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

Unified Diff: third_party/WebKit/Source/bindings/templates/constants.cpp

Issue 1685393002: [Experimental Framework] Rename IDL attribute to OriginTrialEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change existing usage of APIExperimentEnabled Created 4 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
Index: third_party/WebKit/Source/bindings/templates/constants.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/constants.cpp b/third_party/WebKit/Source/bindings/templates/constants.cpp
index 06b8ae79ccb0f4ae55838d8e883a0955b4f8f61f..2ed818f198c7acff7c948c4f5672a026d60849bb 100644
--- a/third_party/WebKit/Source/bindings/templates/constants.cpp
+++ b/third_party/WebKit/Source/bindings/templates/constants.cpp
@@ -1,4 +1,4 @@
-{% from 'utilities.cpp' import check_api_experiment %}
+{% from 'utilities.cpp' import check_origin_trial %}
{##############################################################################}
{% macro constant_getter_callback(constant) %}
@@ -10,8 +10,8 @@ static void {{constant.name}}ConstantGetterCallback(v8::Local<v8::Name>, const v
{% if constant.measure_as %}
UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext(info.GetIsolate()), UseCounter::{{constant.measure_as('ConstantGetter')}});
{% endif %}
- {% if constant.is_api_experiment_enabled %}
- {{check_api_experiment(constant) | indent}}
+ {% if constant.is_origin_trial_enabled %}
+ {{check_origin_trial(constant) | indent}}
{% endif %}
{% if constant.idl_type in ('Double', 'Float') %}
v8SetReturnValue(info, {{constant.value}});
@@ -45,7 +45,7 @@ V8DOMConfiguration::installConstant(isolate, functionTemplate, prototypeTemplate
{% endfor %}
{% endfilter %}
{% endfor %}
-{# Constants with [DeprecateAs] or [MeasureAs] or [APIExperimentEnabled] #}
+{# Constants with [DeprecateAs] or [MeasureAs] or [OriginTrialEnabled] #}
{% for constant in special_getter_constants %}
V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, prototypeTemplate, "{{constant.name}}", {{cpp_class}}V8Internal::{{constant.name}}ConstantGetterCallback);
{% endfor %}
« no previous file with comments | « third_party/WebKit/Source/bindings/templates/attributes.cpp ('k') | third_party/WebKit/Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698