Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: chromeos/login/auth/login_performer.cc

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/login/auth/login_performer.h ('k') | chromeos/login/auth/stub_authenticator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 user_context)); 221 user_context));
222 } 222 }
223 223
224 void LoginPerformer::LoginOffTheRecord() { 224 void LoginPerformer::LoginOffTheRecord() {
225 EnsureAuthenticator(); 225 EnsureAuthenticator();
226 task_runner_->PostTask( 226 task_runner_->PostTask(
227 FROM_HERE, 227 FROM_HERE,
228 base::Bind(&Authenticator::LoginOffTheRecord, authenticator_.get())); 228 base::Bind(&Authenticator::LoginOffTheRecord, authenticator_.get()));
229 } 229 }
230 230
231 void LoginPerformer::LoginAsKioskAccount(const std::string& app_user_id, 231 void LoginPerformer::LoginAsKioskAccount(const AccountId& app_account_id,
232 bool use_guest_mount) { 232 bool use_guest_mount) {
233 EnsureAuthenticator(); 233 EnsureAuthenticator();
234 task_runner_->PostTask(FROM_HERE, 234 task_runner_->PostTask(
235 base::Bind(&Authenticator::LoginAsKioskAccount, 235 FROM_HERE,
236 authenticator_.get(), 236 base::Bind(&Authenticator::LoginAsKioskAccount, authenticator_.get(),
237 app_user_id, 237 app_account_id, use_guest_mount));
238 use_guest_mount));
239 } 238 }
240 239
241 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) { 240 void LoginPerformer::RecoverEncryptedData(const std::string& old_password) {
242 task_runner_->PostTask(FROM_HERE, 241 task_runner_->PostTask(FROM_HERE,
243 base::Bind(&Authenticator::RecoverEncryptedData, 242 base::Bind(&Authenticator::RecoverEncryptedData,
244 authenticator_.get(), 243 authenticator_.get(),
245 old_password)); 244 old_password));
246 } 245 }
247 246
248 void LoginPerformer::ResyncEncryptedData() { 247 void LoginPerformer::ResyncEncryptedData() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } else { 286 } else {
288 NOTREACHED(); 287 NOTREACHED();
289 } 288 }
290 user_context_.ClearSecrets(); 289 user_context_.ClearSecrets();
291 } 290 }
292 291
293 void LoginPerformer::EnsureAuthenticator() { 292 void LoginPerformer::EnsureAuthenticator() {
294 authenticator_ = CreateAuthenticator(); 293 authenticator_ = CreateAuthenticator();
295 } 294 }
296 } // namespace chromeos 295 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/login/auth/login_performer.h ('k') | chromeos/login/auth/stub_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698