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

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

Issue 2666993006: Enable ParseHTMLOnMainThread on TOT (Closed)
Patch Set: clean up virtual test suites Created 3 years, 11 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 d7b86025a2a6f3dd34ac21e95ef3bbe72d2fe71c..6e73ba2811cd6f71c94dcedeaf1039dd57274ec1 100644
--- a/third_party/WebKit/Source/core/CoreInitializer.cpp
+++ b/third_party/WebKit/Source/core/CoreInitializer.cpp
@@ -141,10 +141,6 @@ void CoreInitializer::initialize() {
StringImpl::freezeStaticStrings();
- // Creates HTMLParserThread::shared and ScriptStreamerThread::shared, but
- // does not start the threads.
- if (!RuntimeEnabledFeatures::parseHTMLOnMainThreadEnabled())
- HTMLParserThread::init();
ScriptStreamerThread::init();
}
@@ -153,11 +149,7 @@ void CoreInitializer::shutdown() {
// that this will wait the thread to stop its operations.
ScriptStreamerThread::shutdown();
- // Make sure we stop the HTMLParserThread before Platform::current() is
- // cleared.
ASSERT(Platform::current());
- if (!RuntimeEnabledFeatures::parseHTMLOnMainThreadEnabled())
- HTMLParserThread::shutdown();
WorkerThread::terminateAndWaitForAllWorkers();
}

Powered by Google App Engine
This is Rietveld 408576698