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

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

Issue 2005433002: [Origin Trials] Install origin trial bindings on V8 context conditionally (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-ef-install
Patch Set: Rebase; Respect runtime-enabled flags as well Created 4 years, 7 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_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..f3b8a1c12867aa6fa843ceecd6bb2a0c6fb85cc7 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py
@@ -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:

Powered by Google App Engine
This is Rietveld 408576698