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

Unified Diff: content/test/test_blink_web_unit_test_support.cc

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 | « content/renderer/render_thread_impl.cc ('k') | media/blink/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_blink_web_unit_test_support.cc
diff --git a/content/test/test_blink_web_unit_test_support.cc b/content/test/test_blink_web_unit_test_support.cc
index b6ed473dde6bd2c772f07d54c9a372fc16fe83be..c919c6610eeec8e745b3ac51849c833036e12179 100644
--- a/content/test/test_blink_web_unit_test_support.cc
+++ b/content/test/test_blink_web_unit_test_support.cc
@@ -119,7 +119,8 @@ TestBlinkWebUnitTestSupport::TestBlinkWebUnitTestSupport() {
// an error that it's not set. Cleared by ClearInstanceForTesting() below.
base::FeatureList::SetInstance(base::WrapUnique(new base::FeatureList));
- blink::initialize(this);
+ blink::Platform::initialize(this);
+ blink::initialize();
blink::setLayoutTestMode(true);
blink::WebRuntimeFeatures::enableDatabase(true);
blink::WebRuntimeFeatures::enableNotifications(true);
@@ -157,6 +158,7 @@ TestBlinkWebUnitTestSupport::~TestBlinkWebUnitTestSupport() {
if (renderer_scheduler_)
renderer_scheduler_->Shutdown();
blink::shutdown();
+ blink::Platform::shutdown();
// Clear the FeatureList that was registered in the constructor.
base::FeatureList::ClearInstanceForTesting();
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | media/blink/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698