| 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/screens/user_selection_screen.h" | 9 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
| 10 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 10 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 177 } |
| 178 | 178 |
| 179 void AppLaunchSigninScreen::Signout() { | 179 void AppLaunchSigninScreen::Signout() { |
| 180 NOTREACHED(); | 180 NOTREACHED(); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void AppLaunchSigninScreen::OnAuthFailure(const AuthFailure& error) { | 183 void AppLaunchSigninScreen::OnAuthFailure(const AuthFailure& error) { |
| 184 LOG(ERROR) << "Unlock failure: " << error.reason(); | 184 LOG(ERROR) << "Unlock failure: " << error.reason(); |
| 185 webui_handler_->ClearAndEnablePassword(); | 185 webui_handler_->ClearAndEnablePassword(); |
| 186 webui_handler_->ShowError( | 186 webui_handler_->ShowError( |
| 187 0, | 187 0, l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING_KIOSK), |
| 188 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING_KIOSK), | 188 std::string(), HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT); |
| 189 std::string(), | |
| 190 HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT_OFFLINE); | |
| 191 } | 189 } |
| 192 | 190 |
| 193 void AppLaunchSigninScreen::OnAuthSuccess(const UserContext& user_context) { | 191 void AppLaunchSigninScreen::OnAuthSuccess(const UserContext& user_context) { |
| 194 delegate_->OnOwnerSigninSuccess(); | 192 delegate_->OnOwnerSigninSuccess(); |
| 195 } | 193 } |
| 196 | 194 |
| 197 void AppLaunchSigninScreen::HandleGetUsers() { | 195 void AppLaunchSigninScreen::HandleGetUsers() { |
| 198 base::ListValue users_list; | 196 base::ListValue users_list; |
| 199 const user_manager::UserList& users = GetUsers(); | 197 const user_manager::UserList& users = GetUsers(); |
| 200 | 198 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 213 initial_auth_type, | 211 initial_auth_type, |
| 214 NULL, /* public_session_recommended_locales */ | 212 NULL, /* public_session_recommended_locales */ |
| 215 user_dict); | 213 user_dict); |
| 216 users_list.Append(user_dict); | 214 users_list.Append(user_dict); |
| 217 } | 215 } |
| 218 | 216 |
| 219 webui_handler_->LoadUsers(users_list, false); | 217 webui_handler_->LoadUsers(users_list, false); |
| 220 } | 218 } |
| 221 | 219 |
| 222 } // namespace chromeos | 220 } // namespace chromeos |
| OLD | NEW |