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

Side by Side Diff: mash/session/session.cc

Issue 2719983002: Mash Session: Do not launch a browser service at startup (Closed)
Patch Set: Created 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "mash/session/session.h" 5 #include "mash/session/session.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "content/public/common/service_names.mojom.h" 10 #include "content/public/common/service_names.mojom.h"
11 #include "mash/common/config.h" 11 #include "mash/common/config.h"
12 #include "mash/quick_launch/public/interfaces/constants.mojom.h" 12 #include "mash/quick_launch/public/interfaces/constants.mojom.h"
13 #include "services/service_manager/public/cpp/connector.h" 13 #include "services/service_manager/public/cpp/connector.h"
14 #include "services/service_manager/public/cpp/service_context.h" 14 #include "services/service_manager/public/cpp/service_context.h"
15 15
16 namespace mash { 16 namespace mash {
17 namespace session { 17 namespace session {
18 18
19 Session::Session() {} 19 Session::Session() {}
20 Session::~Session() {} 20 Session::~Session() {}
21 21
22 void Session::OnStart() { 22 void Session::OnStart() {
23 StartWindowManager(); 23 StartWindowManager();
24 StartQuickLaunch(); 24 StartQuickLaunch();
25
26 // Launch a chrome window for dev convience; don't do this in the long term.
sky 2017/02/28 04:17:57 I think it's still convenient to do this. In parti
fwang 2017/02/28 07:06:51 No particular reason, I just saw this message agai
27 context()->connector()->Connect(content::mojom::kPackagedServicesServiceName);
28 } 25 }
29 26
30 void Session::StartWindowManager() { 27 void Session::StartWindowManager() {
31 // TODO(beng): monitor this service for death & bring down the whole system 28 // TODO(beng): monitor this service for death & bring down the whole system
32 // if necessary. 29 // if necessary.
33 context()->connector()->Connect(common::GetWindowManagerServiceName()); 30 context()->connector()->Connect(common::GetWindowManagerServiceName());
34 } 31 }
35 32
36 void Session::StartQuickLaunch() { 33 void Session::StartQuickLaunch() {
37 // TODO(beng): monitor this service for death & bring down the whole system 34 // TODO(beng): monitor this service for death & bring down the whole system
38 // if necessary. 35 // if necessary.
39 context()->connector()->Connect(quick_launch::mojom::kServiceName); 36 context()->connector()->Connect(quick_launch::mojom::kServiceName);
40 } 37 }
41 38
42 } // namespace session 39 } // namespace session
43 } // namespace main 40 } // namespace main
OLDNEW
« chrome/test/base/mash_browser_tests_main.cc ('K') | « chrome/test/base/mash_browser_tests_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698