| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/shell/public/cpp/application_runner.h" | 5 #include "mojo/shell/public/cpp/application_runner.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 init_base = | 74 init_base = |
| 75 !base::CommandLine::ForCurrentProcess()->HasSwitch("single-process"); | 75 !base::CommandLine::ForCurrentProcess()->HasSwitch("single-process"); |
| 76 } | 76 } |
| 77 return Run(shell_client_request_handle, init_base); | 77 return Run(shell_client_request_handle, init_base); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void ApplicationRunner::DestroyShellConnection() { | 80 void ApplicationRunner::DestroyShellConnection() { |
| 81 connection_.reset(); | 81 connection_.reset(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void ApplicationRunner::Quit() { |
| 85 base::MessageLoop::current()->QuitWhenIdle(); |
| 86 } |
| 87 |
| 84 } // namespace mojo | 88 } // namespace mojo |
| OLD | NEW |