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 "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/chromeos/login/help_app_launcher.h" | 8 #include "chrome/browser/chromeos/login/help_app_launcher.h" |
9 #include "chrome/browser/chromeos/login/login_utils.h" | 9 #include "chrome/browser/chromeos/login/login_utils.h" |
10 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 ScreenlockBridge::LockHandler::AuthType initial_auth_type = | 195 ScreenlockBridge::LockHandler::AuthType initial_auth_type = |
196 UserSelectionScreen::ShouldForceOnlineSignIn(*it) | 196 UserSelectionScreen::ShouldForceOnlineSignIn(*it) |
197 ? ScreenlockBridge::LockHandler::ONLINE_SIGN_IN | 197 ? ScreenlockBridge::LockHandler::ONLINE_SIGN_IN |
198 : ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; | 198 : ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; |
199 base::DictionaryValue* user_dict = new base::DictionaryValue(); | 199 base::DictionaryValue* user_dict = new base::DictionaryValue(); |
200 UserSelectionScreen::FillUserDictionary( | 200 UserSelectionScreen::FillUserDictionary( |
201 *it, true, false, initial_auth_type, user_dict); | 201 *it, true, false, initial_auth_type, user_dict); |
202 users_list.Append(user_dict); | 202 users_list.Append(user_dict); |
203 } | 203 } |
204 | 204 |
205 webui_handler_->LoadUsers(users_list, false, false); | 205 webui_handler_->LoadUsers(users_list, false); |
206 } | 206 } |
207 | 207 |
208 void AppLaunchSigninScreen::SetAuthType( | 208 void AppLaunchSigninScreen::SetAuthType( |
209 const std::string& username, | 209 const std::string& username, |
210 ScreenlockBridge::LockHandler::AuthType auth_type) { | 210 ScreenlockBridge::LockHandler::AuthType auth_type) { |
211 return; | 211 return; |
212 } | 212 } |
213 | 213 |
214 ScreenlockBridge::LockHandler::AuthType AppLaunchSigninScreen::GetAuthType( | 214 ScreenlockBridge::LockHandler::AuthType AppLaunchSigninScreen::GetAuthType( |
215 const std::string& username) const { | 215 const std::string& username) const { |
216 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; | 216 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; |
217 } | 217 } |
218 | 218 |
219 } // namespace chromeos | 219 } // namespace chromeos |
OLD | NEW |