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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp

Issue 2473413002: Eagerly install Origin Trial features on window. (Closed)
Patch Set: Created 4 years, 1 month 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/core/v8/ConditionalFeatures.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
index 37b1ce907e1446eee13fd20aa6669d3a382c6ff7..0465a28f42c68bec1ed83cd610431f31180c3bce 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp
@@ -58,4 +58,14 @@ void installConditionalFeatures(const WrapperTypeInfo* type,
interfaceObject);
}
+void installPendingConditionalFeaturesOnWindow(const ScriptState* scriptState) {
+ DCHECK(scriptState);
+ DCHECK(scriptState->context() == scriptState->isolate()->GetCurrentContext());
+ DCHECK(scriptState->perContextData());
+ DCHECK(scriptState->world().isMainWorld());
+ (*s_installConditionalFeaturesFunction)(&V8Window::wrapperTypeInfo,
+ scriptState, v8::Local<v8::Object>(),
+ v8::Local<v8::Function>());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698