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

Unified Diff: remoting/host/simple_host_process.cc

Issue 7655006: Revert 97050 - 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
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/simple_host_process.cc
===================================================================
--- remoting/host/simple_host_process.cc (revision 97052)
+++ remoting/host/simple_host_process.cc (working copy)
@@ -104,8 +104,13 @@
// It needs to be a UI message loop to keep runloops spinning on the Mac.
MessageLoop message_loop(MessageLoop::TYPE_UI);
- remoting::ChromotingHostContext context(
- base::MessageLoopProxy::current());
+ 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)));
context.Start();
base::Thread file_io_thread("FileIO");
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698