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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 11419265: Revert 170360 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
Index: remoting/host/remoting_me2me_host.cc
===================================================================
--- remoting/host/remoting_me2me_host.cc (revision 170590)
+++ remoting/host/remoting_me2me_host.cc (working copy)
@@ -1087,11 +1087,13 @@
// Create the main message loop and start helper threads.
MessageLoop message_loop(MessageLoop::TYPE_UI);
- scoped_ptr<remoting::ChromotingHostContext> context =
- remoting::ChromotingHostContext::Create(
+ base::Closure quit_message_loop = base::Bind(&QuitMessageLoop, &message_loop);
+ scoped_ptr<remoting::ChromotingHostContext> context(
+ new remoting::ChromotingHostContext(
new remoting::AutoThreadTaskRunner(message_loop.message_loop_proxy(),
- MessageLoop::QuitClosure()));
- if (context)
+ quit_message_loop)));
+
+ if (!context->Start())
return remoting::kInitializationFailed;
// Create & start the HostProcess using these threads.
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/win/session_desktop_environment_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698