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 e04ab92c730ea71ff925a9415a3d9207f1aed6e1..aee7cdfb21d1f101fc74b23a3772a6a3565ca41d 100644 |
--- a/content/public/test/render_view_test.cc |
+++ b/content/public/test/render_view_test.cc |
@@ -156,12 +156,6 @@ RenderViewTest::RenderViewTest() |
RenderViewTest::~RenderViewTest() { |
} |
-void RenderViewTest::ProcessPendingMessages() { |
- msg_loop_.task_runner()->PostTask(FROM_HERE, |
- base::MessageLoop::QuitWhenIdleClosure()); |
- base::RunLoop().Run(); |
-} |
- |
WebLocalFrame* RenderViewTest::GetMainFrame() { |
return view_->GetWebView()->MainFrame()->ToWebLocalFrame(); |
} |
@@ -322,7 +316,7 @@ void RenderViewTest::SetUp() { |
void RenderViewTest::TearDown() { |
// Run the loop so the release task from the renderwidget executes. |
- ProcessPendingMessages(); |
+ base::RunLoop().RunUntilIdle(); |
render_thread_->SendCloseMessage(); |