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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 return; | 295 return; |
296 } | 296 } |
297 | 297 |
298 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); | 298 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); |
299 BrowserThread::PostTask( | 299 BrowserThread::PostTask( |
300 BrowserThread::UI, FROM_HERE, | 300 BrowserThread::UI, FROM_HERE, |
301 base::Bind(&Authenticator::LoginAsPublicAccount, authenticator_.get(), | 301 base::Bind(&Authenticator::LoginAsPublicAccount, authenticator_.get(), |
302 username)); | 302 username)); |
303 } | 303 } |
304 | 304 |
305 void LoginPerformer::LoginAsKioskAccount( | 305 void LoginPerformer::LoginAsKioskAccount(const std::string& app_user_id, |
306 const std::string& app_user_id, bool force_ephemeral) { | 306 bool use_guest_mount) { |
307 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); | 307 authenticator_ = LoginUtils::Get()->CreateAuthenticator(this); |
308 BrowserThread::PostTask( | 308 BrowserThread::PostTask( |
309 BrowserThread::UI, FROM_HERE, | 309 BrowserThread::UI, FROM_HERE, |
310 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), | 310 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), |
311 app_user_id, force_ephemeral)); | 311 app_user_id, use_guest_mount)); |
312 } | 312 } |
313 | 313 |
314 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { | 314 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { |
315 BrowserThread::PostTask( | 315 BrowserThread::PostTask( |
316 BrowserThread::UI, FROM_HERE, | 316 BrowserThread::UI, FROM_HERE, |
317 base::Bind(&Authenticator::RecoverEncryptedData, authenticator_.get(), | 317 base::Bind(&Authenticator::RecoverEncryptedData, authenticator_.get(), |
318 old_password)); | 318 old_password)); |
319 } | 319 } |
320 | 320 |
321 void LoginPerformer::ResyncEncryptedData() { | 321 void LoginPerformer::ResyncEncryptedData() { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 policy::WildcardLoginChecker::Result result) { | 368 policy::WildcardLoginChecker::Result result) { |
369 if (result == policy::WildcardLoginChecker::RESULT_ALLOWED) { | 369 if (result == policy::WildcardLoginChecker::RESULT_ALLOWED) { |
370 StartLoginCompletion(); | 370 StartLoginCompletion(); |
371 } else { | 371 } else { |
372 if (delegate_) | 372 if (delegate_) |
373 delegate_->WhiteListCheckFailed(user_context_.username); | 373 delegate_->WhiteListCheckFailed(user_context_.username); |
374 } | 374 } |
375 } | 375 } |
376 | 376 |
377 } // namespace chromeos | 377 } // namespace chromeos |
OLD | NEW |