| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 void AppLaunchSigninScreen::CreateAccount() { | 76 void AppLaunchSigninScreen::CreateAccount() { |
| 77 NOTREACHED(); | 77 NOTREACHED(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void AppLaunchSigninScreen::CompleteLogin(const UserContext& user_context) { | 80 void AppLaunchSigninScreen::CompleteLogin(const UserContext& user_context) { |
| 81 NOTREACHED(); | 81 NOTREACHED(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void AppLaunchSigninScreen::Login(const UserContext& user_context, | 84 void AppLaunchSigninScreen::Login(const UserContext& user_context) { |
| 85 const SigninSpecifics& specifics) { | |
| 86 // Note: LoginUtils::CreateAuthenticator doesn't necessarily create | 85 // Note: LoginUtils::CreateAuthenticator doesn't necessarily create |
| 87 // a new Authenticator object, and could reuse an existing one. | 86 // a new Authenticator object, and could reuse an existing one. |
| 88 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); | 87 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); |
| 89 content::BrowserThread::PostTask( | 88 content::BrowserThread::PostTask( |
| 90 content::BrowserThread::UI, FROM_HERE, | 89 content::BrowserThread::UI, FROM_HERE, |
| 91 base::Bind(&Authenticator::AuthenticateToUnlock, | 90 base::Bind(&Authenticator::AuthenticateToUnlock, |
| 92 authenticator_.get(), | 91 authenticator_.get(), |
| 93 user_context)); | 92 user_context)); |
| 94 } | 93 } |
| 95 | 94 |
| 95 void AppLaunchSigninScreen::LoginAsRetailModeUser() { |
| 96 NOTREACHED(); |
| 97 } |
| 98 |
| 99 void AppLaunchSigninScreen::LoginAsGuest() { |
| 100 NOTREACHED(); |
| 101 } |
| 102 |
| 96 void AppLaunchSigninScreen::MigrateUserData(const std::string& old_password) { | 103 void AppLaunchSigninScreen::MigrateUserData(const std::string& old_password) { |
| 97 NOTREACHED(); | 104 NOTREACHED(); |
| 98 } | 105 } |
| 99 | 106 |
| 107 void AppLaunchSigninScreen::LoginAsPublicAccount(const std::string& username) { |
| 108 NOTREACHED(); |
| 109 } |
| 110 |
| 100 void AppLaunchSigninScreen::LoadWallpaper(const std::string& username) { | 111 void AppLaunchSigninScreen::LoadWallpaper(const std::string& username) { |
| 101 } | 112 } |
| 102 | 113 |
| 103 void AppLaunchSigninScreen::LoadSigninWallpaper() { | 114 void AppLaunchSigninScreen::LoadSigninWallpaper() { |
| 104 } | 115 } |
| 105 | 116 |
| 106 void AppLaunchSigninScreen::OnSigninScreenReady() { | 117 void AppLaunchSigninScreen::OnSigninScreenReady() { |
| 107 } | 118 } |
| 108 | 119 |
| 109 void AppLaunchSigninScreen::RemoveUser(const std::string& username) { | 120 void AppLaunchSigninScreen::RemoveUser(const std::string& username) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 177 } |
| 167 | 178 |
| 168 void AppLaunchSigninScreen::SetDisplayEmail(const std::string& email) { | 179 void AppLaunchSigninScreen::SetDisplayEmail(const std::string& email) { |
| 169 return; | 180 return; |
| 170 } | 181 } |
| 171 | 182 |
| 172 void AppLaunchSigninScreen::Signout() { | 183 void AppLaunchSigninScreen::Signout() { |
| 173 NOTREACHED(); | 184 NOTREACHED(); |
| 174 } | 185 } |
| 175 | 186 |
| 187 void AppLaunchSigninScreen::LoginAsKioskApp(const std::string& app_id, |
| 188 bool diagnostic_mode) { |
| 189 NOTREACHED(); |
| 190 } |
| 191 |
| 176 void AppLaunchSigninScreen::OnLoginFailure(const LoginFailure& error) { | 192 void AppLaunchSigninScreen::OnLoginFailure(const LoginFailure& error) { |
| 177 LOG(ERROR) << "Unlock failure: " << error.reason(); | 193 LOG(ERROR) << "Unlock failure: " << error.reason(); |
| 178 webui_handler_->ClearAndEnablePassword(); | 194 webui_handler_->ClearAndEnablePassword(); |
| 179 webui_handler_->ShowError( | 195 webui_handler_->ShowError( |
| 180 0, | 196 0, |
| 181 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING_KIOSK), | 197 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING_KIOSK), |
| 182 std::string(), | 198 std::string(), |
| 183 HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT_OFFLINE); | 199 HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT_OFFLINE); |
| 184 } | 200 } |
| 185 | 201 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 210 ScreenlockBridge::LockHandler::AuthType auth_type) { | 226 ScreenlockBridge::LockHandler::AuthType auth_type) { |
| 211 return; | 227 return; |
| 212 } | 228 } |
| 213 | 229 |
| 214 ScreenlockBridge::LockHandler::AuthType AppLaunchSigninScreen::GetAuthType( | 230 ScreenlockBridge::LockHandler::AuthType AppLaunchSigninScreen::GetAuthType( |
| 215 const std::string& username) const { | 231 const std::string& username) const { |
| 216 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; | 232 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; |
| 217 } | 233 } |
| 218 | 234 |
| 219 } // namespace chromeos | 235 } // namespace chromeos |
| OLD | NEW |