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

Unified Diff: content/test/test_renderer_host.cc

Issue 10575014: Move process-per-site logic from BrowsingInstance to RenderProcessHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years, 6 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/test/test_renderer_host.cc
diff --git a/content/test/test_renderer_host.cc b/content/test/test_renderer_host.cc
index ee1adf2aa98e029b299646773de98e317e810675..b827d687cef6e69d9177cdf6bf4571423f182cf8 100644
--- a/content/test/test_renderer_host.cc
+++ b/content/test/test_renderer_host.cc
@@ -143,6 +143,10 @@ void RenderViewHostTestHarness::TearDown() {
// before we destroy the browser context.
MessageLoop::current()->RunAllPending();
+ // Delete any RenderProcessHosts before the BrowserContext goes away.
+ if (rvh_test_enabler_.rph_factory_.get())
+ rvh_test_enabler_.rph_factory_.reset();
awong 2012/06/28 19:38:13 Do these need to be deleted on any particular thre
Charlie Reis 2012/06/28 19:41:57 The RenderProcessHosts are created on the main tes
+
// Release the browser context on the UI thread.
message_loop_.DeleteSoon(FROM_HERE, browser_context_.release());
message_loop_.RunAllPending();

Powered by Google App Engine
This is Rietveld 408576698