OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/chromeos/login/app_launch_signin_screen.h" | 5 #include "chrome/browser/chromeos/login/app_launch_signin_screen.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 delegate_->OnOwnerSigninSuccess(); | 210 delegate_->OnOwnerSigninSuccess(); |
211 } | 211 } |
212 | 212 |
213 void AppLaunchSigninScreen::HandleGetUsers() { | 213 void AppLaunchSigninScreen::HandleGetUsers() { |
214 base::ListValue users_list; | 214 base::ListValue users_list; |
215 const user_manager::UserList& users = GetUsers(); | 215 const user_manager::UserList& users = GetUsers(); |
216 | 216 |
217 for (user_manager::UserList::const_iterator it = users.begin(); | 217 for (user_manager::UserList::const_iterator it = users.begin(); |
218 it != users.end(); | 218 it != users.end(); |
219 ++it) { | 219 ++it) { |
220 proximity_auth::ScreenlockBridge::LockHandler::AuthType initial_auth_type = | 220 proximity_auth::mojom::AuthType initial_auth_type = |
221 UserSelectionScreen::ShouldForceOnlineSignIn(*it) | 221 UserSelectionScreen::ShouldForceOnlineSignIn(*it) |
222 ? proximity_auth::ScreenlockBridge::LockHandler::ONLINE_SIGN_IN | 222 ? proximity_auth::mojom::AuthType::ONLINE_SIGN_IN |
223 : proximity_auth::ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; | 223 : proximity_auth::mojom::AuthType::OFFLINE_PASSWORD; |
224 auto user_dict = base::MakeUnique<base::DictionaryValue>(); | 224 auto user_dict = base::MakeUnique<base::DictionaryValue>(); |
225 UserSelectionScreen::FillUserDictionary( | 225 UserSelectionScreen::FillUserDictionary( |
226 *it, true, /* is_owner */ | 226 *it, true, /* is_owner */ |
227 false, /* is_signin_to_add */ | 227 false, /* is_signin_to_add */ |
228 initial_auth_type, NULL, /* public_session_recommended_locales */ | 228 initial_auth_type, NULL, /* public_session_recommended_locales */ |
229 user_dict.get()); | 229 user_dict.get()); |
230 users_list.Append(std::move(user_dict)); | 230 users_list.Append(std::move(user_dict)); |
231 } | 231 } |
232 | 232 |
233 webui_handler_->LoadUsers(users, users_list); | 233 webui_handler_->LoadUsers(users, users_list); |
234 } | 234 } |
235 | 235 |
236 void AppLaunchSigninScreen::CheckUserStatus(const AccountId& account_id) {} | 236 void AppLaunchSigninScreen::CheckUserStatus(const AccountId& account_id) {} |
237 | 237 |
238 bool AppLaunchSigninScreen::IsUserWhitelisted(const AccountId& account_id) { | 238 bool AppLaunchSigninScreen::IsUserWhitelisted(const AccountId& account_id) { |
239 NOTREACHED(); | 239 NOTREACHED(); |
240 return true; | 240 return true; |
241 } | 241 } |
242 | 242 |
243 } // namespace chromeos | 243 } // namespace chromeos |
OLD | NEW |