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(const std::string& app_user_id) { | 299 void LoginPerformer::LoginAsKioskAccount( |
300 const std::string& app_user_id, bool force_ephemeral) { | |
bartfab (slow)
2014/02/13 19:51:53
This violates the style guide. Either the entire d
rkc
2014/02/13 23:22:01
Done.
| |
300 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); | 301 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); |
301 BrowserThread::PostTask( | 302 BrowserThread::PostTask( |
302 BrowserThread::UI, FROM_HERE, | 303 BrowserThread::UI, FROM_HERE, |
303 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), | 304 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), |
304 app_user_id)); | 305 app_user_id, force_ephemeral)); |
305 } | 306 } |
306 | 307 |
307 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { | 308 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { |
308 BrowserThread::PostTask( | 309 BrowserThread::PostTask( |
309 BrowserThread::UI, FROM_HERE, | 310 BrowserThread::UI, FROM_HERE, |
310 base::Bind(&Authenticator::RecoverEncryptedData, authenticator_.get(), | 311 base::Bind(&Authenticator::RecoverEncryptedData, authenticator_.get(), |
311 old_password)); | 312 old_password)); |
312 } | 313 } |
313 | 314 |
314 void LoginPerformer::ResyncEncryptedData() { | 315 void LoginPerformer::ResyncEncryptedData() { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
360 void LoginPerformer::OnlineWildcardLoginCheckCompleted(bool result) { | 361 void LoginPerformer::OnlineWildcardLoginCheckCompleted(bool result) { |
361 if (result) { | 362 if (result) { |
362 StartLoginCompletion(); | 363 StartLoginCompletion(); |
363 } else { | 364 } else { |
364 if (delegate_) | 365 if (delegate_) |
365 delegate_->WhiteListCheckFailed(user_context_.username); | 366 delegate_->WhiteListCheckFailed(user_context_.username); |
366 } | 367 } |
367 } | 368 } |
368 | 369 |
369 } // namespace chromeos | 370 } // namespace chromeos |
OLD | NEW |