Chromium Code Reviews| 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(); |