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

Unified Diff: remoting/host/chromoting_host_context.cc

Issue 14314026: remoting: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | « remoting/base/auto_thread_unittest.cc ('k') | remoting/host/chromoting_host_context_unittest.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 9c42eb56fcbecc7c3d94592575637707de10fd77..2f394ac948195a5ee5630e9ec64639b9cf8098b2 100644
--- a/remoting/host/chromoting_host_context.cc
+++ b/remoting/host/chromoting_host_context.cc
@@ -18,22 +18,24 @@ ChromotingHostContext::ChromotingHostContext(
#if defined(OS_WIN)
// On Windows the AudioCapturer requires COM, so we run a single-threaded
// apartment, which requires a UI thread.
- audio_task_runner_ = AutoThread::CreateWithLoopAndComInitTypes(
- "ChromotingAudioThread", ui_task_runner_, MessageLoop::TYPE_UI,
- AutoThread::COM_INIT_STA);
+ audio_task_runner_ =
+ AutoThread::CreateWithLoopAndComInitTypes("ChromotingAudioThread",
+ ui_task_runner_,
+ base::MessageLoop::TYPE_UI,
+ AutoThread::COM_INIT_STA);
#else // !defined(OS_WIN)
audio_task_runner_ = AutoThread::CreateWithType(
- "ChromotingAudioThread", ui_task_runner_, MessageLoop::TYPE_IO);
-#endif // !defined(OS_WIN)
+ "ChromotingAudioThread", ui_task_runner_, base::MessageLoop::TYPE_IO);
+#endif // !defined(OS_WIN)
file_task_runner_ = AutoThread::CreateWithType(
- "ChromotingFileThread", ui_task_runner_, MessageLoop::TYPE_IO);
+ "ChromotingFileThread", ui_task_runner_, base::MessageLoop::TYPE_IO);
input_task_runner_ = AutoThread::CreateWithType(
- "ChromotingInputThread", ui_task_runner_, MessageLoop::TYPE_IO);
+ "ChromotingInputThread", ui_task_runner_, base::MessageLoop::TYPE_IO);
network_task_runner_ = AutoThread::CreateWithType(
- "ChromotingNetworkThread", ui_task_runner_, MessageLoop::TYPE_IO);
- video_capture_task_runner_ = AutoThread::Create(
- "ChromotingCaptureThread", ui_task_runner_);
+ "ChromotingNetworkThread", ui_task_runner_, base::MessageLoop::TYPE_IO);
+ video_capture_task_runner_ =
+ AutoThread::Create("ChromotingCaptureThread", ui_task_runner_);
video_encode_task_runner_ = AutoThread::Create(
"ChromotingEncodeThread", ui_task_runner_);
« no previous file with comments | « remoting/base/auto_thread_unittest.cc ('k') | remoting/host/chromoting_host_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698