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

Unified Diff: remoting/host/simple_host_process.cc

Issue 7635030: Add PluginMessageLoopProxy and use it for Host plugin UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 3e6000c01d17d39f54f2e82bc2304f29820dbb46..fb99e5228de38c61d17a6dac5ba44dfe3f125301 100644
--- a/remoting/host/simple_host_process.cc
+++ b/remoting/host/simple_host_process.cc
@@ -104,13 +104,8 @@ class SimpleHost {
// It needs to be a UI message loop to keep runloops spinning on the Mac.
MessageLoop message_loop(MessageLoop::TYPE_UI);
- remoting::ChromotingHostContext context;
- // static_cast needed to resolve overloaded PostTask member-function.
- context.SetUITaskPostFunction(base::Bind(
- static_cast<void(MessageLoop::*)(
- const tracked_objects::Location&,
- const base::Closure&)>(&MessageLoop::PostTask),
- base::Unretained(&message_loop)));
+ remoting::ChromotingHostContext context(
+ base::MessageLoopProxy::CreateForCurrentThread());
context.Start();
base::Thread file_io_thread("FileIO");

Powered by Google App Engine
This is Rietveld 408576698