Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
index 44f8a1e7a85e2a92ee440459aa221eefaba9befa..389e4556f5f5dc08c82d98876ed2912805fd17b7 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
@@ -818,6 +818,32 @@ v8::Local<v8::Context> toV8ContextEvenIfDetached(Frame* frame, DOMWrapperWorld& |
return frame->windowProxy(world)->contextIfInitialized(); |
} |
+void installOriginTrialsCore(ScriptState* scriptState) |
+{ |
+ // TODO(iclelland): Generate all of this logic at compile-time, based on the |
+ // configuration of origin trial enabled attibutes and interfaces in IDL |
+ // files. (crbug.com/615060) |
+ |
+ // Initialization code for origin trials for core bindings, if necessary, |
+ // should go here. |
+} |
+ |
+namespace { |
+InstallOriginTrialsFunction s_installOriginTrialsFunction = &installOriginTrialsCore; |
+} |
+ |
+void installOriginTrials(ScriptState* scriptState) |
+{ |
+ (*s_installOriginTrialsFunction)(scriptState); |
+} |
+ |
+InstallOriginTrialsFunction setInstallOriginTrialsFunction(InstallOriginTrialsFunction newInstallOriginTrialsFunction) |
+{ |
+ InstallOriginTrialsFunction originalFunction = s_installOriginTrialsFunction; |
+ s_installOriginTrialsFunction = newInstallOriginTrialsFunction; |
+ return originalFunction; |
+} |
+ |
void crashIfIsolateIsDead(v8::Isolate* isolate) |
{ |
if (isolate->IsDead()) { |