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

Side by Side Diff: shell/in_process_dynamic_service_runner.cc

Issue 974403002: Add --force-in-process flag to shell. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: amend comment Created 5 years, 9 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 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 "shell/in_process_dynamic_service_runner.h" 5 #include "shell/in_process_dynamic_service_runner.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 DVLOG(2) << "Loading/running Mojo app in process from library: " 54 DVLOG(2) << "Loading/running Mojo app in process from library: "
55 << app_path_.value() 55 << app_path_.value()
56 << " thread id=" << base::PlatformThread::CurrentId(); 56 << " thread id=" << base::PlatformThread::CurrentId();
57 57
58 app_library_.Reset(LoadAndRunNativeApplication(app_path_, cleanup_behavior_, 58 app_library_.Reset(LoadAndRunNativeApplication(app_path_, cleanup_behavior_,
59 application_request_.Pass())); 59 application_request_.Pass()));
60 app_completed_callback_runner_.Run(); 60 app_completed_callback_runner_.Run();
61 app_completed_callback_runner_.Reset(); 61 app_completed_callback_runner_.Reset();
62 } 62 }
63 63
64 scoped_ptr<NativeRunner> InProcessDynamicServiceRunnerFactory::Create(
65 const Options& options) {
66 return make_scoped_ptr(new InProcessDynamicServiceRunner(context_));
67 }
68
64 } // namespace shell 69 } // namespace shell
65 } // namespace mojo 70 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698