Index: third_party/WebKit/Source/bindings/scripts/v8_utilities.py |
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py |
index 4691f57ec122126f6e03d94644c703113bfdd20d..e934c986ad2ad5f3dc454be4b2e97b8469a1cd61 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py |
+++ b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py |
@@ -393,7 +393,7 @@ def origin_trial_enabled_function_name(definition_or_member): |
'%s.%s' % (definition_or_member.idl_name, definition_or_member.name)) |
if is_origin_trial_enabled: |
- includes.add('core/inspector/ConsoleMessage.h') |
+ includes.add('bindings/core/v8/ScriptState.h') |
includes.add('core/origin_trials/OriginTrials.h') |
trial_name = extended_attributes['OriginTrialEnabled'] |
@@ -402,6 +402,13 @@ def origin_trial_enabled_function_name(definition_or_member): |
return None |
+def origin_trial_feature_name(definition_or_member): |
+ extended_attributes = definition_or_member.extended_attributes |
+ if 'OriginTrialEnabled' not in extended_attributes: |
+ return None |
+ return extended_attributes['OriginTrialEnabled'] |
+ |
+ |
def runtime_feature_name(definition_or_member): |
extended_attributes = definition_or_member.extended_attributes |
if 'RuntimeEnabled' not in extended_attributes: |