summaryrefslogtreecommitdiffstats
path: root/remoting/host/simple_host_process.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 23:57:42 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 23:57:42 +0000
commit195266b9bc120ccec02b8a027c6f204aa21dde50 (patch)
tree16df27b1f30623c39abc18a27bb57572ddabeb1c /remoting/host/simple_host_process.cc
parent8bd9e5623c17e845acbc182772b63f818f1d0bd5 (diff)
downloadchromium_src-195266b9bc120ccec02b8a027c6f204aa21dde50.zip
chromium_src-195266b9bc120ccec02b8a027c6f204aa21dde50.tar.gz
chromium_src-195266b9bc120ccec02b8a027c6f204aa21dde50.tar.bz2
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
Diffstat (limited to 'remoting/host/simple_host_process.cc')
-rw-r--r--remoting/host/simple_host_process.cc9
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");