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

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

Issue 2057273002: [OriginTrials] Support OriginTrialEnabled IDL attribute on constants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move signature creation out of for loop 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.h
diff --git a/third_party/WebKit/Source/bindings/templates/partial_interface.h b/third_party/WebKit/Source/bindings/templates/partial_interface.h
index 512cf62539e4f1ae898d15d2a794ba42e543b073..cfe97763b877537e21e0926b7fb6441a478c36e4 100644
--- a/third_party/WebKit/Source/bindings/templates/partial_interface.h
+++ b/third_party/WebKit/Source/bindings/templates/partial_interface.h
@@ -28,8 +28,8 @@ public:
{% endfor %}
{# Custom internal fields #}
static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8::FunctionTemplate>);
- {% for group in attributes|origin_trial_enabled_attributes|groupby('origin_trial_feature_name') %}{{newline}}
- static void install{{group.grouper}}(ScriptState*, v8::Local<v8::Object> instance);
+ {% for origin_trial_feature_name in origin_trial_feature_names %}{{newline}}
+ static void install{{origin_trial_feature_name}}(ScriptState*, v8::Local<v8::Object> instance);
{% endfor %}
private:
static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);

Powered by Google App Engine
This is Rietveld 408576698