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

Unified Diff: remoting/host/desktop_process.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/host/daemon_process_unittest.cc ('k') | remoting/host/desktop_process_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_process.cc
diff --git a/remoting/host/desktop_process.cc b/remoting/host/desktop_process.cc
index c62e85cf0063c0352111d129c4911832ece1681d..c07fa1d07ce4baae893ec0c932c37df3a1963a0a 100644
--- a/remoting/host/desktop_process.cc
+++ b/remoting/host/desktop_process.cc
@@ -31,7 +31,7 @@ DesktopProcess::DesktopProcess(
input_task_runner_(input_task_runner),
daemon_channel_name_(daemon_channel_name) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
- DCHECK_EQ(MessageLoop::current()->type(), MessageLoop::TYPE_UI);
+ DCHECK_EQ(base::MessageLoop::current()->type(), base::MessageLoop::TYPE_UI);
}
DesktopProcess::~DesktopProcess() {
@@ -102,18 +102,20 @@ bool DesktopProcess::Start(
#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", caller_task_runner_, MessageLoop::TYPE_UI,
- AutoThread::COM_INIT_STA);
+ audio_task_runner =
+ AutoThread::CreateWithLoopAndComInitTypes("ChromotingAudioThread",
+ caller_task_runner_,
+ base::MessageLoop::TYPE_UI,
+ AutoThread::COM_INIT_STA);
#else // !defined(OS_WIN)
audio_task_runner = AutoThread::CreateWithType(
- "ChromotingAudioThread", caller_task_runner_, MessageLoop::TYPE_IO);
-#endif // !defined(OS_WIN)
+ "ChromotingAudioThread", caller_task_runner_, base::MessageLoop::TYPE_IO);
+#endif // !defined(OS_WIN)
// Launch the I/O thread.
scoped_refptr<AutoThreadTaskRunner> io_task_runner =
- AutoThread::CreateWithType("I/O thread", caller_task_runner_,
- MessageLoop::TYPE_IO);
+ AutoThread::CreateWithType(
+ "I/O thread", caller_task_runner_, base::MessageLoop::TYPE_IO);
// Launch the video capture thread.
scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner =
« no previous file with comments | « remoting/host/daemon_process_unittest.cc ('k') | remoting/host/desktop_process_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698