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

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

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « mash/init/init.h ('k') | mash/init/main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/init/init.h" 5 #include "mash/init/init.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/guid.h" 9 #include "base/guid.h"
10 #include "mash/login/public/interfaces/login.mojom.h" 10 #include "mash/login/public/interfaces/login.mojom.h"
11 #include "mojo/shell/public/cpp/connection.h" 11 #include "services/shell/public/cpp/connection.h"
12 #include "mojo/shell/public/cpp/connector.h" 12 #include "services/shell/public/cpp/connector.h"
13 13
14 namespace mash { 14 namespace mash {
15 namespace init { 15 namespace init {
16 16
17 Init::Init() 17 Init::Init()
18 : connector_(nullptr) {} 18 : connector_(nullptr) {}
19 Init::~Init() {} 19 Init::~Init() {}
20 20
21 void Init::Initialize(mojo::Connector* connector, 21 void Init::Initialize(mojo::Connector* connector,
22 const mojo::Identity& identity, 22 const mojo::Identity& identity,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void Init::StartLogin() { 71 void Init::StartLogin() {
72 login_connection_ = connector_->Connect("mojo:login"); 72 login_connection_ = connector_->Connect("mojo:login");
73 login_connection_->AddInterface<mojom::Init>(this); 73 login_connection_->AddInterface<mojom::Init>(this);
74 mash::login::mojom::LoginPtr login; 74 mash::login::mojom::LoginPtr login;
75 login_connection_->GetInterface(&login); 75 login_connection_->GetInterface(&login);
76 login->ShowLoginUI(); 76 login->ShowLoginUI();
77 } 77 }
78 78
79 } // namespace init 79 } // namespace init
80 } // namespace main 80 } // namespace main
OLDNEW
« no previous file with comments | « mash/init/init.h ('k') | mash/init/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698