| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromeos/login/auth/login_performer.h" | 5 #include "chromeos/login/auth/login_performer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 232 |
| 233 void LoginPerformer::LoginAsKioskAccount(const AccountId& app_account_id, | 233 void LoginPerformer::LoginAsKioskAccount(const AccountId& app_account_id, |
| 234 bool use_guest_mount) { | 234 bool use_guest_mount) { |
| 235 EnsureAuthenticator(); | 235 EnsureAuthenticator(); |
| 236 task_runner_->PostTask( | 236 task_runner_->PostTask( |
| 237 FROM_HERE, | 237 FROM_HERE, |
| 238 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), | 238 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(), |
| 239 app_account_id, use_guest_mount)); | 239 app_account_id, use_guest_mount)); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void LoginPerformer::LoginAsArcKioskAccount( |
| 243 const AccountId& arc_app_account_id) { |
| 244 EnsureAuthenticator(); |
| 245 task_runner_->PostTask(FROM_HERE, |
| 246 base::Bind(&Authenticator::LoginAsArcKioskAccount, |
| 247 authenticator_.get(), arc_app_account_id)); |
| 248 } |
| 249 |
| 242 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { | 250 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { |
| 243 task_runner_->PostTask(FROM_HERE, | 251 task_runner_->PostTask(FROM_HERE, |
| 244 base::Bind(&Authenticator::RecoverEncryptedData, | 252 base::Bind(&Authenticator::RecoverEncryptedData, |
| 245 authenticator_.get(), | 253 authenticator_.get(), |
| 246 old_password)); | 254 old_password)); |
| 247 } | 255 } |
| 248 | 256 |
| 249 void LoginPerformer::ResyncEncryptedData() { | 257 void LoginPerformer::ResyncEncryptedData() { |
| 250 task_runner_->PostTask( | 258 task_runner_->PostTask( |
| 251 FROM_HERE, | 259 FROM_HERE, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 } else { | 296 } else { |
| 289 NOTREACHED(); | 297 NOTREACHED(); |
| 290 } | 298 } |
| 291 user_context_.ClearSecrets(); | 299 user_context_.ClearSecrets(); |
| 292 } | 300 } |
| 293 | 301 |
| 294 void LoginPerformer::EnsureAuthenticator() { | 302 void LoginPerformer::EnsureAuthenticator() { |
| 295 authenticator_ = CreateAuthenticator(); | 303 authenticator_ = CreateAuthenticator(); |
| 296 } | 304 } |
| 297 } // namespace chromeos | 305 } // namespace chromeos |
| OLD | NEW |