| Index: remoting/host/remoting_me2me_host.cc
|
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
|
| index 8cfdc5f85b07e57d787417a5967bfb31b5e50409..ce8f0ad7e4cbaa9b78c0dd9db77b930d6368c495 100644
|
| --- a/remoting/host/remoting_me2me_host.cc
|
| +++ b/remoting/host/remoting_me2me_host.cc
|
| @@ -1067,13 +1067,11 @@ int main(int argc, char** argv) {
|
|
|
| // Create the main message loop and start helper threads.
|
| MessageLoop message_loop(MessageLoop::TYPE_UI);
|
| - base::Closure quit_message_loop = base::Bind(&QuitMessageLoop, &message_loop);
|
| - scoped_ptr<remoting::ChromotingHostContext> context(
|
| - new remoting::ChromotingHostContext(
|
| + scoped_ptr<remoting::ChromotingHostContext> context =
|
| + remoting::ChromotingHostContext::Create(
|
| new remoting::AutoThreadTaskRunner(message_loop.message_loop_proxy(),
|
| - quit_message_loop)));
|
| -
|
| - if (!context->Start())
|
| + MessageLoop::QuitClosure()));
|
| + if (context)
|
| return remoting::kInitializationFailed;
|
|
|
| // Create & start the HostProcess using these threads.
|
|
|