OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/test/test_session_state_delegate.h" | 5 #include "ash/common/test/test_session_state_delegate.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/common/login_status.h" | 10 #include "ash/common/login_status.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 active_user_index_ = 0; | 227 active_user_index_ = 0; |
228 for (auto iter = user_list_.begin(); iter != user_list_.end(); ++iter) { | 228 for (auto iter = user_list_.begin(); iter != user_list_.end(); ++iter) { |
229 if ((*iter)->GetAccountId() == account_id) { | 229 if ((*iter)->GetAccountId() == account_id) { |
230 active_user_index_ = iter - user_list_.begin(); | 230 active_user_index_ = iter - user_list_.begin(); |
231 return; | 231 return; |
232 } | 232 } |
233 } | 233 } |
234 NOTREACHED() << "Unknown user:" << account_id.GetUserEmail(); | 234 NOTREACHED() << "Unknown user:" << account_id.GetUserEmail(); |
235 } | 235 } |
236 | 236 |
237 void TestSessionStateDelegate::CycleActiveUser(CycleUser cycle_user) { | 237 void TestSessionStateDelegate::CycleActiveUser(CycleUserDirection direction) { |
238 SwitchActiveUser(AccountId::FromUserEmail("someone@tray")); | 238 SwitchActiveUser(AccountId::FromUserEmail("someone@tray")); |
239 } | 239 } |
240 | 240 |
241 bool TestSessionStateDelegate::IsMultiProfileAllowedByPrimaryUserPolicy() | 241 bool TestSessionStateDelegate::IsMultiProfileAllowedByPrimaryUserPolicy() |
242 const { | 242 const { |
243 return true; | 243 return true; |
244 } | 244 } |
245 | 245 |
246 void TestSessionStateDelegate::AddSessionStateObserver( | 246 void TestSessionStateDelegate::AddSessionStateObserver( |
247 SessionStateObserver* observer) {} | 247 SessionStateObserver* observer) {} |
248 | 248 |
249 void TestSessionStateDelegate::RemoveSessionStateObserver( | 249 void TestSessionStateDelegate::RemoveSessionStateObserver( |
250 SessionStateObserver* observer) {} | 250 SessionStateObserver* observer) {} |
251 | 251 |
252 } // namespace test | 252 } // namespace test |
253 } // namespace ash | 253 } // namespace ash |
OLD | NEW |