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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 1394803004: Don't use base::MessageLoop::{Quit,QuitClosure} in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 86bcc054eff2acd8b18738d36837006d1b83d8df..a4a5bc3b874f5948f8681f717f73f6a6fd0ba3e7 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -1628,9 +1628,9 @@ int HostProcessMain() {
// Create the main message loop and start helper threads.
base::MessageLoopForUI message_loop;
- scoped_ptr<ChromotingHostContext> context =
- ChromotingHostContext::Create(new AutoThreadTaskRunner(
- message_loop.task_runner(), base::MessageLoop::QuitClosure()));
+ scoped_ptr<ChromotingHostContext> context = ChromotingHostContext::Create(
+ new AutoThreadTaskRunner(message_loop.task_runner(),
+ base::MessageLoop::QuitWhenIdleClosure()));
if (!context)
return kInitializationFailed;
« no previous file with comments | « remoting/host/host_status_logger_unittest.cc ('k') | remoting/host/token_validator_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698