diff options
Diffstat (limited to 'remoting/host/simple_host_process.cc')
-rw-r--r-- | remoting/host/simple_host_process.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc index 3e6000c..92b515e 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::current()); context.Start(); base::Thread file_io_thread("FileIO"); |