Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc |
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc |
index 049c95a47d50e3103e6a6d559377bfb607e98adb..9f9ba86c14c5fa720bcef9058a40ab9eafd85b83 100644 |
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc |
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc |
@@ -7,8 +7,10 @@ |
#include "base/callback.h" |
#include "base/command_line.h" |
#include "base/compiler_specific.h" |
+#include "base/location.h" |
#include "base/memory/scoped_ptr.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "chrome/browser/local_discovery/test_service_discovery_client.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
@@ -441,7 +443,7 @@ class LocalDiscoveryUITest : public WebUIBrowserTest { |
base::CancelableCallback<void()> callback(base::Bind( |
&base::MessageLoop::Quit, base::Unretained( |
msw
2015/06/10 00:12:58
Is this and base::MessageLoop::current() here and
Sami
2015/06/10 12:35:34
Yes, both MessageLoop::current and ThreadTaskRunne
msw
2015/06/10 19:34:00
Again, it seems odd to use inconsistent terminolog
|
base::MessageLoop::current()))); |
- base::MessageLoop::current()->PostDelayedTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, callback.callback(), time_period); |
base::MessageLoop::current()->Run(); |