| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "remoting/host/setup/me2me_native_messaging_host_main.h" | 5 #include "remoting/host/setup/me2me_native_messaging_host_main.h" |
| 6 | 6 |
| 7 #include <cstdint> | 7 #include <cstdint> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 static_cast<intptr_t>(native_view_handle), | 262 static_cast<intptr_t>(native_view_handle), |
| 263 std::move(context), daemon_controller, | 263 std::move(context), daemon_controller, |
| 264 pairing_registry, std::move(oauth_client))); | 264 pairing_registry, std::move(oauth_client))); |
| 265 | 265 |
| 266 host->Start(native_messaging_pipe.get()); | 266 host->Start(native_messaging_pipe.get()); |
| 267 | 267 |
| 268 native_messaging_pipe->Start(std::move(host), std::move(channel)); | 268 native_messaging_pipe->Start(std::move(host), std::move(channel)); |
| 269 | 269 |
| 270 // Run the loop until channel is alive. | 270 // Run the loop until channel is alive. |
| 271 run_loop.Run(); | 271 run_loop.Run(); |
| 272 |
| 273 // Block until tasks blocking shutdown have completed their execution. |
| 274 base::TaskScheduler::GetInstance()->Shutdown(); |
| 275 |
| 272 return kSuccessExitCode; | 276 return kSuccessExitCode; |
| 273 } | 277 } |
| 274 | 278 |
| 275 } // namespace remoting | 279 } // namespace remoting |
| OLD | NEW |