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

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

Issue 2159123002: Shutdown renderer main message loop before blink::shutdown() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 4 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
« no previous file with comments | « media/blink/run_all_unittests.cc ('k') | third_party/WebKit/public/web/WebKit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1051c2379c90b7e4db63a57db75c21a4791d7918..e0d77b0100949369b997707216fac4482758cb75 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -80,16 +80,16 @@ static ModulesInitializer& modulesInitializer()
return *initializer;
}
-void initialize(Platform* platform)
+void initialize()
{
- Platform::initialize(platform);
+ DCHECK(Platform::current());
V8Initializer::initializeMainThread();
modulesInitializer().initialize();
// currentThread is null if we are running on a thread without a message loop.
- if (WebThread* currentThread = platform->currentThread()) {
+ if (WebThread* currentThread = Platform::current()->currentThread()) {
DCHECK(!s_endOfTaskRunner);
s_endOfTaskRunner = new EndOfTaskRunner;
currentThread->addTaskObserver(s_endOfTaskRunner);
@@ -112,8 +112,6 @@ void shutdown()
modulesInitializer().shutdown();
V8Initializer::shutdownMainThread();
-
- Platform::shutdown();
}
v8::Isolate* mainThreadIsolate()
« no previous file with comments | « media/blink/run_all_unittests.cc ('k') | third_party/WebKit/public/web/WebKit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698