| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/login_performer.h" | 5 #include "chrome/browser/chromeos/login/login_performer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 return; | 289 return; |
| 290 } | 290 } |
| 291 | 291 |
| 292 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); | 292 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); |
| 293 BrowserThread::PostTask( | 293 BrowserThread::PostTask( |
| 294 BrowserThread::UI, FROM_HERE, | 294 BrowserThread::UI, FROM_HERE, |
| 295 base::Bind(&Authenticator::LoginAsPublicAccount, authenticator_.get(), | 295 base::Bind(&Authenticator::LoginAsPublicAccount, authenticator_.get(), |
| 296 username)); | 296 username)); |
| 297 } | 297 } |
| 298 | 298 |
| 299 void LoginPerformer::LoginAsKioskAccount( | 299 void LoginPerformer::LoginAsKioskAccount(const std::string& app_user_id, |
| 300 const std::string& app_user_id, bool force_ephemeral) { | 300 bool force_ephemeral) { |
| 301 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); | 301 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); |
| 302 BrowserThread::PostTask( | 302 BrowserThread::PostTask( |
| 303 BrowserThread::UI, FROM_HERE, | 303 BrowserThread::UI, FROM_HERE, |
| 304 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), | 304 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), |
| 305 app_user_id, force_ephemeral)); | 305 app_user_id, force_ephemeral)); |
| 306 } | 306 } |
| 307 | 307 |
| 308 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { | 308 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { |
| 309 BrowserThread::PostTask( | 309 BrowserThread::PostTask( |
| 310 BrowserThread::UI, FROM_HERE, | 310 BrowserThread::UI, FROM_HERE, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 void LoginPerformer::OnlineWildcardLoginCheckCompleted(bool result) { | 361 void LoginPerformer::OnlineWildcardLoginCheckCompleted(bool result) { |
| 362 if (result) { | 362 if (result) { |
| 363 StartLoginCompletion(); | 363 StartLoginCompletion(); |
| 364 } else { | 364 } else { |
| 365 if (delegate_) | 365 if (delegate_) |
| 366 delegate_->WhiteListCheckFailed(user_context_.username); | 366 delegate_->WhiteListCheckFailed(user_context_.username); |
| 367 } | 367 } |
| 368 } | 368 } |
| 369 | 369 |
| 370 } // namespace chromeos | 370 } // namespace chromeos |
| OLD | NEW |