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

Unified Diff: third_party/WebKit/Source/core/CoreInitializer.cpp

Issue 2745313003: Move securityCheck out of V8WrapperInstantiationScope (Closed)
Patch Set: Move functions into static class and remove flag bit Created 3 years, 9 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/core/CoreInitializer.cpp
diff --git a/third_party/WebKit/Source/core/CoreInitializer.cpp b/third_party/WebKit/Source/core/CoreInitializer.cpp
index a094386fa1e30ff7dde0292e88237e9161e14bfb..a143217db2c7533dd13f093f2941c6ee8b8d19fe 100644
--- a/third_party/WebKit/Source/core/CoreInitializer.cpp
+++ b/third_party/WebKit/Source/core/CoreInitializer.cpp
@@ -30,7 +30,9 @@
#include "core/CoreInitializer.h"
+#include "bindings/core/v8/BindingSecurity.h"
#include "bindings/core/v8/ScriptStreamerThread.h"
+#include "bindings/core/v8/WrapperCreationSecurityCheck.h"
#include "core/EventNames.h"
#include "core/EventTargetNames.h"
#include "core/EventTypeNames.h"
@@ -142,6 +144,9 @@ void CoreInitializer::initialize() {
StringImpl::freezeStaticStrings();
ScriptStreamerThread::init();
+
+ WrapperCreationSecurityCheck::setSecurityCheckFunction(
+ &BindingSecurity::wrapperCreationSecurityCheck);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698