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

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
Index: remoting/host/simple_host_process.cc
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc
index 7635e544439a9d8daa5315e56a0c0fdbdf7f71ef..bc96aa223acbb77dc9961839a90fed10f43486e0 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;

Powered by Google App Engine
This is Rietveld 408576698