From 195266b9bc120ccec02b8a027c6f204aa21dde50 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Tue, 16 Aug 2011 23:57:42 +0000 Subject: Add PluginMessageLoopProxy and use it for Host plugin UI thread. The new class will also be used in the client plugin for the main plugin thread. BUG=None TEST=Everything works. Review URL: http://codereview.chromium.org/7635030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97060 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/simple_host_process.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'remoting/host/simple_host_process.cc') 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(&MessageLoop::PostTask), - base::Unretained(&message_loop))); + remoting::ChromotingHostContext context( + base::MessageLoopProxy::current()); context.Start(); base::Thread file_io_thread("FileIO"); -- cgit v1.1