Index: chrome/browser/local_discovery/privet_url_fetcher_unittest.cc |
diff --git a/chrome/browser/local_discovery/privet_url_fetcher_unittest.cc b/chrome/browser/local_discovery/privet_url_fetcher_unittest.cc |
index d1b83fde79390781c0d50f68edc90b818ee9e9ea..75dd5fcbc657c38fcb3167441c84796f89f7315b 100644 |
--- a/chrome/browser/local_discovery/privet_url_fetcher_unittest.cc |
+++ b/chrome/browser/local_discovery/privet_url_fetcher_unittest.cc |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/thread_task_runner_handle.h" |
#include "chrome/browser/local_discovery/privet_url_fetcher.h" |
#include "net/url_request/test_url_fetcher_factory.h" |
@@ -106,7 +108,7 @@ class PrivetURLFetcherTest : public ::testing::Test { |
void RunFor(base::TimeDelta time_period) { |
base::CancelableCallback<void()> callback(base::Bind( |
&PrivetURLFetcherTest::Stop, base::Unretained(this))); |
- base::MessageLoop::current()->PostDelayedTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, callback.callback(), time_period); |
base::MessageLoop::current()->Run(); |