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

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

Issue 1861433002: Make [OriginTrialEnabled] and [RuntimeEnabled] mutually exclusive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@586594-separate-tests
Patch Set: Correct IDL for Web Bluetooth Created 4 years, 8 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/attributes.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/attributes.cpp b/third_party/WebKit/Source/bindings/templates/attributes.cpp
index e72b9ed23601f0a80e55bfa077c537b8bc410cf7..94c2305ae9cf27ad021401466443ad18ab398524 100644
--- a/third_party/WebKit/Source/bindings/templates/attributes.cpp
+++ b/third_party/WebKit/Source/bindings/templates/attributes.cpp
@@ -9,7 +9,7 @@ const v8::PropertyCallbackInfo<v8::Value>& info
const v8::FunctionCallbackInfo<v8::Value>& info
{%- endif %})
{
- {% if attribute.is_origin_trial_enabled %}
+ {% if attribute.origin_trial_enabled_function %}
{{check_origin_trial(attribute) | indent}}
{% endif %}
{% if attribute.is_reflect and not attribute.is_url
@@ -176,7 +176,7 @@ const v8::FunctionCallbackInfo<v8::Value>& info
{% if attribute.measure_as %}
UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext(info.GetIsolate()), UseCounter::{{attribute.measure_as('AttributeGetter')}});
{% endif %}
- {% if attribute.is_origin_trial_enabled %}
+ {% if attribute.origin_trial_enabled_function %}
{{check_origin_trial(attribute) | indent}}
{% endif %}
{% if world_suffix in attribute.activity_logging_world_list_for_getter %}
@@ -208,7 +208,7 @@ static void {{attribute.name}}ConstructorGetterCallback{{world_suffix}}(v8::Loca
{% if attribute.measure_as %}
UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext(info.GetIsolate()), UseCounter::{{attribute.measure_as('ConstructorGetter')}});
{% endif %}
- {% if attribute.is_origin_trial_enabled %}
+ {% if attribute.origin_trial_enabled_function %}
{{check_origin_trial(attribute) | indent}}
{% endif %}
v8ConstructorAttributeGetter(property, info);
@@ -410,7 +410,7 @@ bool {{v8_class}}::PrivateScript::{{attribute.name}}AttributeGetter(LocalFrame*
if (holder.IsEmpty())
return false;
- {% if attribute.is_origin_trial_enabled %}
+ {% if attribute.origin_trial_enabled_function %}
{{check_origin_trial(attribute, "scriptState->isolate()") | indent}}
{% endif %}

Powered by Google App Engine
This is Rietveld 408576698