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

Unified Diff: chrome/browser/local_discovery/service_discovery_host_client.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/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 3d75a03e11aab749296162079ac2b6f7c0487ceb..dc69d97a2727e6f09fdceb15ae96cc14b09343cd 100644
--- a/chrome/browser/local_discovery/service_discovery_host_client.cc
+++ b/chrome/browser/local_discovery/service_discovery_host_client.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/local_discovery/service_discovery_host_client.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/common/local_discovery/local_discovery_messages.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/browser_thread.h"
@@ -282,8 +283,9 @@ void ServiceDiscoveryHostClient::StartOnIOThread() {
void ServiceDiscoveryHostClient::OnSocketsReady(const SocketInfoList& sockets) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(!utility_host_);
- utility_host_ = UtilityProcessHost::Create(
- this, base::MessageLoopProxy::current().get())->AsWeakPtr();
+ utility_host_ =
+ UtilityProcessHost::Create(
+ this, base::ThreadTaskRunnerHandle::Get().get())->AsWeakPtr();
utility_host_->SetName(l10n_util::GetStringUTF16(
IDS_UTILITY_PROCESS_SERVICE_DISCOVERY_HANDLER_NAME));
utility_host_->EnableMDns();
@@ -304,8 +306,9 @@ void ServiceDiscoveryHostClient::OnSocketsReady(const SocketInfoList& sockets) {
void ServiceDiscoveryHostClient::StartOnIOThread() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(!utility_host_);
- utility_host_ = UtilityProcessHost::Create(
- this, base::MessageLoopProxy::current().get())->AsWeakPtr();
+ utility_host_ =
+ UtilityProcessHost::Create(
+ this, base::ThreadTaskRunnerHandle::Get().get())->AsWeakPtr();
utility_host_->SetName(l10n_util::GetStringUTF16(
IDS_UTILITY_PROCESS_SERVICE_DISCOVERY_HANDLER_NAME));
utility_host_->EnableMDns();

Powered by Google App Engine
This is Rietveld 408576698