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

Unified Diff: remoting/host/chromoting_host_context.cc

Issue 10909133: Implement clipboard for Chromoting Linux hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 8 years, 3 months 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/clipboard_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host_context.cc
diff --git a/remoting/host/chromoting_host_context.cc b/remoting/host/chromoting_host_context.cc
index 37ba9f3785530db2c6bfca425d11233da8e77ca3..87eeb1b02bec0dee18a94a3e38a23bd8ee70a0e5 100644
--- a/remoting/host/chromoting_host_context.cc
+++ b/remoting/host/chromoting_host_context.cc
@@ -40,14 +40,12 @@ void ChromotingHostContext::ReleaseTaskRunners() {
bool ChromotingHostContext::Start() {
// Start all the threads.
+ base::Thread::Options io_thread_options(MessageLoop::TYPE_IO, 0);
bool started = capture_thread_.Start() && encode_thread_.Start() &&
- audio_thread_.StartWithOptions(base::Thread::Options(
- MessageLoop::TYPE_IO, 0)) &&
- network_thread_.StartWithOptions(base::Thread::Options(
- MessageLoop::TYPE_IO, 0)) &&
- desktop_thread_.Start() &&
- file_thread_.StartWithOptions(
- base::Thread::Options(MessageLoop::TYPE_IO, 0));
+ audio_thread_.StartWithOptions(io_thread_options) &&
+ network_thread_.StartWithOptions(io_thread_options) &&
+ desktop_thread_.StartWithOptions(io_thread_options) &&
+ file_thread_.StartWithOptions(io_thread_options);
if (!started)
return false;
« no previous file with comments | « no previous file | remoting/host/clipboard_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698