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

Unified Diff: content/public/test/render_view_test.cc

Issue 2159123002: Shutdown renderer main message loop before blink::shutdown() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split out blink::Platform::initialize from blink::initialize 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
Index: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index 72c1e356c0fdb5da2c37510cabef3fbe29f2c6dc..95bf8b90c9e9a97a5a7e715ccdac9e97b49ffc9f 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -233,7 +233,8 @@ void RenderViewTest::GoForward(const GURL& url, const PageState& state) {
void RenderViewTest::SetUp() {
// Blink needs to be initialized before calling CreateContentRendererClient()
// because it uses blink internally.
- blink::initialize(blink_platform_impl_.Get());
+ blink::Platform::initialize(blink_platform_impl_.Get());
+ blink::initialize();
content_client_.reset(CreateContentClient());
content_browser_client_.reset(CreateContentBrowserClient());
@@ -350,6 +351,7 @@ void RenderViewTest::TearDown() {
blink_platform_impl_.Shutdown();
blink::shutdown();
+ blink::Platform::shutdown();
platform_->PlatformUninitialize();
platform_.reset();

Powered by Google App Engine
This is Rietveld 408576698