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

Unified Diff: remoting/host/simple_host_process.cc

Issue 10572005: Use SingleThreadTaskRunner instead of MessageLoopProxy in remoting/host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « remoting/host/session_event_executor_win.cc ('k') | remoting/host/url_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/simple_host_process.cc
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc
index de87e38dd9f179776967f2f975ed30137f0d527c..e9935d194784e020aed079be34c5ab71498604a4 100644
--- a/remoting/host/simple_host_process.cc
+++ b/remoting/host/simple_host_process.cc
@@ -153,7 +153,7 @@ class SimpleHost : public HeartbeatSender::Listener {
xmpp_auth_service_ = kChromotingTokenDefaultServiceName;
}
- context_.network_message_loop()->PostTask(FROM_HERE, base::Bind(
+ context_.network_task_runner()->PostTask(FROM_HERE, base::Bind(
&SimpleHost::StartHost, base::Unretained(this)));
message_loop_.MessageLoop::Run();
@@ -226,8 +226,8 @@ class SimpleHost : public HeartbeatSender::Listener {
if (fake_) {
scoped_ptr<Capturer> capturer(new CapturerFake());
scoped_ptr<EventExecutor> event_executor = EventExecutor::Create(
- context_.desktop_message_loop()->message_loop_proxy(),
- context_.ui_message_loop(), capturer.get());
+ context_.desktop_task_runner(),
+ context_.ui_task_runner(), capturer.get());
desktop_environment_ = DesktopEnvironment::CreateFake(
&context_, capturer.Pass(), event_executor.Pass());
} else {
@@ -280,7 +280,7 @@ class SimpleHost : public HeartbeatSender::Listener {
}
void Shutdown(int exit_code) {
- DCHECK(context_.network_message_loop()->BelongsToCurrentThread());
+ DCHECK(context_.network_task_runner()->BelongsToCurrentThread());
if (shutting_down_)
return;
@@ -292,7 +292,7 @@ class SimpleHost : public HeartbeatSender::Listener {
}
void OnShutdownFinished() {
- DCHECK(context_.network_message_loop()->BelongsToCurrentThread());
+ DCHECK(context_.network_task_runner()->BelongsToCurrentThread());
// Destroy networking objects while we are on the network thread.
host_ = NULL;
« no previous file with comments | « remoting/host/session_event_executor_win.cc ('k') | remoting/host/url_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698