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

Side by Side Diff: ash/session/session_controller.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (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
« no previous file with comments | « ash/session/session_controller.h ('k') | ash/session/session_controller_unittest.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 "ash/common/session/session_controller.h" 5 #include "ash/session/session_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/common/session/session_state_observer.h" 9 #include "ash/session/session_state_observer.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "components/signin/core/account_id/account_id.h" 12 #include "components/signin/core/account_id/account_id.h"
13 #include "services/service_manager/public/cpp/connector.h" 13 #include "services/service_manager/public/cpp/connector.h"
14 14
15 namespace ash { 15 namespace ash {
16 16
17 SessionController::SessionController() {} 17 SessionController::SessionController() {}
18 18
19 SessionController::~SessionController() {} 19 SessionController::~SessionController() {}
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void SessionController::AddUserSession(mojom::UserSessionPtr user_session) { 157 void SessionController::AddUserSession(mojom::UserSessionPtr user_session) {
158 const AccountId account_id(user_session->account_id); 158 const AccountId account_id(user_session->account_id);
159 159
160 user_sessions_.push_back(std::move(user_session)); 160 user_sessions_.push_back(std::move(user_session));
161 161
162 for (auto& observer : observers_) 162 for (auto& observer : observers_)
163 observer.UserAddedToSession(account_id); 163 observer.UserAddedToSession(account_id);
164 } 164 }
165 165
166 } // namespace ash 166 } // namespace ash
OLDNEW
« no previous file with comments | « ash/session/session_controller.h ('k') | ash/session/session_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698