diff options
Diffstat (limited to 'chrome/test/base/in_process_browser_test.cc')
-rw-r--r-- | chrome/test/base/in_process_browser_test.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc index 8c09bcc..cb63fb1 100644 --- a/chrome/test/base/in_process_browser_test.cc +++ b/chrome/test/base/in_process_browser_test.cc @@ -11,9 +11,12 @@ #include "base/files/file_path.h" #include "base/files/file_util.h" #include "base/lazy_instance.h" +#include "base/location.h" #include "base/path_service.h" +#include "base/single_thread_task_runner.h" #include "base/strings/string_number_conversions.h" #include "base/test/test_file_util.h" +#include "base/thread_task_runner_handle.h" #include "base/threading/non_thread_safe.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/lifetime/application_lifetime.h" @@ -576,8 +579,8 @@ void InProcessBrowserTest::QuitBrowsers() { // Invoke AttemptExit on a running message loop. // AttemptExit exits the message loop after everything has been // shut down properly. - base::MessageLoopForUI::current()->PostTask(FROM_HERE, - base::Bind(&chrome::AttemptExit)); + base::ThreadTaskRunnerHandle::Get()->PostTask( + FROM_HERE, base::Bind(&chrome::AttemptExit)); content::RunMessageLoop(); #if defined(OS_MACOSX) |