Index: content/public/test/browser_test_utils.cc |
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc |
index 5e8bcb3c67ecb1eadb5ce3596b117feb66e47238..dd0d5e3b4a6ee75d20891c6faf6e8c5b9b8990ae 100644 |
--- a/content/public/test/browser_test_utils.cc |
+++ b/content/public/test/browser_test_utils.cc |
@@ -20,6 +20,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/test/test_timeouts.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "base/values.h" |
#include "build/build_config.h" |
#include "cc/surfaces/surface.h" |
@@ -981,8 +982,7 @@ void FetchHistogramsFromChildProcesses() { |
scoped_refptr<content::MessageLoopRunner> runner = new MessageLoopRunner; |
FetchHistogramsAsynchronously( |
- base::MessageLoop::current(), |
- runner->QuitClosure(), |
+ base::ThreadTaskRunnerHandle::Get(), runner->QuitClosure(), |
// If this call times out, it means that a child process is not |
// responding, which is something we should not ignore. The timeout is |
// set to be longer than the normal browser test timeout so that it will |