summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-17 05:17:35 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-17 05:17:35 +0000
commita7b869bdf6b2c71b30599bbd72f3e1ebdee98fee (patch)
tree13dd6f9c986da2e17f8e6053f97cf1a265819ce2 /chrome/service
parent1631f7c651fbc7f4460a852126f545afc5513531 (diff)
downloadchromium_src-a7b869bdf6b2c71b30599bbd72f3e1ebdee98fee.zip
chromium_src-a7b869bdf6b2c71b30599bbd72f3e1ebdee98fee.tar.gz
chromium_src-a7b869bdf6b2c71b30599bbd72f3e1ebdee98fee.tar.bz2
Inject MessageLoop into Capturer
Simple patch to juse inject the message loop. BUG=None TEST=None Review URL: http://codereview.chromium.org/4971003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/service_process.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc
index f04e082..fccd186 100644
--- a/chrome/service/service_process.cc
+++ b/chrome/service/service_process.cc
@@ -289,15 +289,18 @@ bool ServiceProcess::StartChromotingHost() {
scoped_ptr<remoting::protocol::InputStub> input_stub;
#if defined(OS_WIN)
- capturer.reset(new remoting::CapturerGdi());
+ capturer.reset(new remoting::CapturerGdi(
+ chromoting_context_->capture_message_loop()));
input_stub.reset(new remoting::EventExecutorWin(
chromoting_context_->capture_message_loop(), capturer.get()));
#elif defined(OS_LINUX)
- capturer.reset(new remoting::CapturerLinux());
+ capturer.reset(new remoting::CapturerLinux(
+ chromoting_context_->capture_message_loop()));
input_stub.reset(new remoting::EventExecutorLinux(
chromoting_context_->capture_message_loop(), capturer.get()));
#elif defined(OS_MACOSX)
- capturer.reset(new remoting::CapturerMac());
+ capturer.reset(new remoting::CapturerMac(
+ chromoting_context_->capture_message_loop()));
input_stub.reset(new remoting::EventExecutorMac(
chromoting_context_->capture_message_loop(), capturer.get()));
#endif