diff options
Diffstat (limited to 'remoting/host/simple_host_process.cc')
-rw-r--r-- | remoting/host/simple_host_process.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc index fc2029c..d62d49b 100644 --- a/remoting/host/simple_host_process.cc +++ b/remoting/host/simple_host_process.cc @@ -27,6 +27,7 @@ #include "base/file_path.h" #include "base/logging.h" #include "base/mac/scoped_nsautorelease_pool.h" +#include "base/message_loop.h" #include "base/path_service.h" #include "base/test/mock_chrome_application_mac.h" #include "base/threading/thread.h" @@ -120,6 +121,11 @@ class SimpleHost { 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&, Task*)>(&MessageLoop::PostTask), + base::Unretained(&message_loop))); context.Start(); base::Thread file_io_thread("FileIO"); |