Index: content/shell/browser/layout_test/layout_test_browser_main.cc |
diff --git a/content/shell/browser/layout_test/layout_test_browser_main.cc b/content/shell/browser/layout_test/layout_test_browser_main.cc |
index c8c73cc086843152d1d42c091ceac6bff31be256..3bad74bf171df950d859462e80d990b052238600 100644 |
--- a/content/shell/browser/layout_test/layout_test_browser_main.cc |
+++ b/content/shell/browser/layout_test/layout_test_browser_main.cc |
@@ -89,7 +89,7 @@ int RunTests(const scoped_ptr<content::BrowserMainRunner>& main_runner) { |
} |
if (!ran_at_least_once) { |
base::ThreadTaskRunnerHandle::Get()->PostTask( |
- FROM_HERE, base::MessageLoop::QuitClosure()); |
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure()); |
main_runner->Run(); |
} |
@@ -131,7 +131,7 @@ int LayoutTestBrowserMain( |
if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kCheckLayoutTestSysDeps)) { |
base::ThreadTaskRunnerHandle::Get()->PostTask( |
- FROM_HERE, base::MessageLoop::QuitClosure()); |
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure()); |
main_runner->Run(); |
content::Shell::CloseAllWindows(); |
main_runner->Shutdown(); |