Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1617)

Unified Diff: chrome/browser/local_discovery/privet_url_fetcher_unittest.cc

Issue 1127553002: [chrome/browser/local_discovery] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Build break : Dependency in components/wifi classes Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 467e1d8b94645962f96b0db94b0f8f7228bff935..d1b83fde79390781c0d50f68edc90b818ee9e9ea 100644
--- a/chrome/browser/local_discovery/privet_url_fetcher_unittest.cc
+++ b/chrome/browser/local_discovery/privet_url_fetcher_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#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"
#include "net/url_request/url_request_test_util.h"
@@ -88,8 +89,8 @@ class MockPrivetURLFetcherDelegate : public PrivetURLFetcher::Delegate {
class PrivetURLFetcherTest : public ::testing::Test {
public:
PrivetURLFetcherTest() {
- request_context_= new net::TestURLRequestContextGetter(
- base::MessageLoopProxy::current());
+ request_context_ = new net::TestURLRequestContextGetter(
+ base::ThreadTaskRunnerHandle::Get());
privet_urlfetcher_.reset(new PrivetURLFetcher(
GURL(kSamplePrivetURL),
net::URLFetcher::POST,

Powered by Google App Engine
This is Rietveld 408576698