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

Side by Side Diff: remoting/host/setup/me2me_native_messaging_host_main.cc

Issue 2679293002: Fix TaskScheduler initialization in remoting processes. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« remoting/client/jni/chromoting_jni_runtime.cc ('K') | « remoting/host/remoting_me2me_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698