Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4395)

Unified Diff: chrome/service/service_process.cc

Issue 4971003: Inject MessageLoop into Capturer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/capturer.h » ('j') | remoting/host/capturer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_process.cc
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc
index f04e0828e12ba5662a7de4fa28d876dde11b15ea..fccd1863d19d3cf093ef9f7d95f76b249be4b305 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
« no previous file with comments | « no previous file | remoting/host/capturer.h » ('j') | remoting/host/capturer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698