OLD | NEW |
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" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 DCHECK(it != user_services_.end()); | 56 DCHECK(it != user_services_.end()); |
57 user_services_.erase(it); | 57 user_services_.erase(it); |
58 } | 58 } |
59 | 59 |
60 void Init::StartTracing() { | 60 void Init::StartTracing() { |
61 connector()->Connect("mojo:tracing"); | 61 connector()->Connect("mojo:tracing"); |
62 } | 62 } |
63 | 63 |
64 void Init::StartLogin() { | 64 void Init::StartLogin() { |
65 login_connection_ = connector()->Connect("mojo:login"); | 65 login_connection_ = connector()->Connect("mojo:login"); |
66 login_connection_->AddInterface<mojom::Init>(this); | |
67 mash::login::mojom::LoginPtr login; | 66 mash::login::mojom::LoginPtr login; |
68 login_connection_->GetInterface(&login); | 67 login_connection_->GetInterface(&login); |
69 login->ShowLoginUI(); | 68 login->ShowLoginUI(); |
70 } | 69 } |
71 | 70 |
72 } // namespace init | 71 } // namespace init |
73 } // namespace main | 72 } // namespace main |
OLD | NEW |