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

Unified Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 2863913002: Change AudioOutputDeviceClientImpl to use WebLocalFrameBase and move to modules. (Closed)
Patch Set: Created 3 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/web/WebKit.cpp
diff --git a/third_party/WebKit/Source/web/WebKit.cpp b/third_party/WebKit/Source/web/WebKit.cpp
index e87484f4b15c60d17ed13a6c161e3d9b9a2cb6a7..4aaec4caa747282ee0546147ba9ddb5e0abb3ef1 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -53,6 +53,7 @@
#include "public/platform/Platform.h"
#include "public/platform/WebThread.h"
#include "v8/include/v8.h"
+#include "web/WebInitializer.h"
namespace blink {
@@ -77,6 +78,12 @@ static ModulesInitializer& GetModulesInitializer() {
return *initializer;
}
+static WebInitializer& GetWebInitializer() {
+ DEFINE_STATIC_LOCAL(std::unique_ptr<WebInitializer>, initializer,
+ (WTF::WrapUnique(new WebInitializer)));
dcheng 2017/05/05 04:54:52 Nit: no need for unique_ptr here: DEFINE_STATIC_LO
slangley 2017/05/05 06:25:00 Done.
+ return *initializer;
+}
+
void Initialize(Platform* platform) {
Platform::Initialize(platform);
@@ -84,6 +91,8 @@ void Initialize(Platform* platform) {
GetModulesInitializer().Initialize();
+ GetWebInitializer().Initialize();
+
// currentThread is null if we are running on a thread without a message loop.
if (WebThread* current_thread = platform->CurrentThread()) {
DCHECK(!g_end_of_task_runner);

Powered by Google App Engine
This is Rietveld 408576698