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

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

Issue 2106983002: Allow origin trials to be declared on IDL operations (methods) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unneeded includes, addressing nits Created 4 years, 6 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/partial_interface.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/partial_interface.cpp b/third_party/WebKit/Source/bindings/templates/partial_interface.cpp
index b112026ce43a2f3e333170ee37100d4c741af751..37b4741ca976103832716b5d1b6813fce2324f89 100644
--- a/third_party/WebKit/Source/bindings/templates/partial_interface.cpp
+++ b/third_party/WebKit/Source/bindings/templates/partial_interface.cpp
@@ -12,7 +12,7 @@ void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::C
{{v8_class}}::preparePrototypeAndInterfaceObject(context, world, prototypeObject, interfaceObject, interfaceTemplate);
{% if unscopeables or
has_conditional_attributes_on_prototype or
- conditionally_enabled_methods %}
+ methods | conditionally_exposed(is_partial) %}
v8::Isolate* isolate = context->GetIsolate();
{% endif %}
{% if unscopeables %}
@@ -21,7 +21,7 @@ void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::C
{% if has_conditional_attributes_on_prototype %}
{{install_conditionally_enabled_attributes_on_prototype() | indent}}
{% endif %}
-{% if conditionally_enabled_methods %}
+{% if methods | conditionally_exposed(is_partial) %}
{{install_conditionally_enabled_methods() | indent}}
{% endif %}
}

Powered by Google App Engine
This is Rietveld 408576698