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

Unified Diff: chrome/browser/local_discovery/privet_http_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_http_unittest.cc
diff --git a/chrome/browser/local_discovery/privet_http_unittest.cc b/chrome/browser/local_discovery/privet_http_unittest.cc
index c77de5eaf8920df315bca66997f09e19c5d33606..f8d5dbe539b9f51fc9b38a73b8a92b89891b2b89 100644
--- a/chrome/browser/local_discovery/privet_http_unittest.cc
+++ b/chrome/browser/local_discovery/privet_http_unittest.cc
@@ -6,6 +6,7 @@
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/message_loop/message_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/local_discovery/privet_http_impl.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
@@ -244,8 +245,8 @@ class PrivetHTTPTest : public ::testing::Test {
PrivetHTTPTest() {
PrivetURLFetcher::ResetTokenMapForTests();
- request_context_= new net::TestURLRequestContextGetter(
- base::MessageLoopProxy::current());
+ request_context_ = new net::TestURLRequestContextGetter(
+ base::ThreadTaskRunnerHandle::Get());
privet_client_ =
PrivetV1HTTPClient::CreateDefault(make_scoped_ptr<PrivetHTTPClient>(
new PrivetHTTPClientImpl("sampleDevice._privet._tcp.local",

Powered by Google App Engine
This is Rietveld 408576698