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