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

Unified Diff: third_party/WebKit/Source/bindings/scripts/v8_methods.py

Issue 2090773005: [OriginTrials] Raise an exception at compile time for OT-enabled methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add note about support in IDLExtendedAttributes.md 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/scripts/v8_methods.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_methods.py b/third_party/WebKit/Source/bindings/scripts/v8_methods.py
index a2f12e4120679c3de74bc21b148cbb439c6c3987..f79f6ea0ac30c4139a2dd6210f30547185f9305c 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_methods.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_methods.py
@@ -68,6 +68,13 @@ def method_context(interface, method, is_visible=True):
is_static = method.is_static
name = method.name
+ # [OriginTrialEnabled]
+ # TODO(iclelland): Allow origin trials on methods
+ # (crbug.com/621641)
+ if v8_utilities.origin_trial_feature_name(method):
+ raise Exception('[OriginTrialEnabled] cannot be specified on '
+ 'individual methods: %s.%s' % (interface.name, method.name))
+
if is_visible:
idl_type.add_includes_for_type(extended_attributes)

Powered by Google App Engine
This is Rietveld 408576698