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

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

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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/service_discovery_host_client.cc
diff --git a/chrome/browser/local_discovery/service_discovery_host_client.cc b/chrome/browser/local_discovery/service_discovery_host_client.cc
index dc69d97a2727e6f09fdceb15ae96cc14b09343cd..9acbb9c3b74b90a538751fc0361169fc060ff711 100644
--- a/chrome/browser/local_discovery/service_discovery_host_client.cc
+++ b/chrome/browser/local_discovery/service_discovery_host_client.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/local_discovery/service_discovery_host_client.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "chrome/common/local_discovery/local_discovery_messages.h"
#include "chrome/grit/generated_resources.h"
@@ -174,7 +176,7 @@ class ServiceDiscoveryHostClient::LocalDomainResolverProxy
};
ServiceDiscoveryHostClient::ServiceDiscoveryHostClient() : current_id_(0) {
- callback_runner_ = base::MessageLoop::current()->message_loop_proxy();
+ callback_runner_ = base::MessageLoop::current()->task_runner();
io_runner_ = BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
}

Powered by Google App Engine
This is Rietveld 408576698