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

Side by Side Diff: chrome/browser/chromeos/login/auth/parallel_authenticator.cc

Issue 374913002: Use MountGuestAndGetHash() instead of MountGuest() for retail mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove log Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 "chrome/browser/chromeos/login/auth/parallel_authenticator.h" 5 #include "chrome/browser/chromeos/login/auth/parallel_authenticator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // Note: |kRetailModeUserEMail| is used in other places to identify a retail 322 // Note: |kRetailModeUserEMail| is used in other places to identify a retail
323 // mode session. 323 // mode session.
324 current_state_.reset( 324 current_state_.reset(
325 new AuthAttemptState(UserContext(UserManager::kRetailModeUserName), 325 new AuthAttemptState(UserContext(UserManager::kRetailModeUserName),
326 user_manager::USER_TYPE_RETAIL_MODE, 326 user_manager::USER_TYPE_RETAIL_MODE,
327 false, // unlock 327 false, // unlock
328 false, // online_complete 328 false, // online_complete
329 false)); // user_is_new 329 false)); // user_is_new
330 remove_user_data_on_failure_ = false; 330 remove_user_data_on_failure_ = false;
331 ephemeral_mount_attempted_ = true; 331 ephemeral_mount_attempted_ = true;
332 MountGuest(current_state_.get(), 332 MountGuestAndGetHash(current_state_.get(),
333 scoped_refptr<ParallelAuthenticator>(this)); 333 scoped_refptr<ParallelAuthenticator>(this));
334 } 334 }
335 335
336 void ParallelAuthenticator::LoginOffTheRecord() { 336 void ParallelAuthenticator::LoginOffTheRecord() {
337 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 337 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
338 current_state_.reset( 338 current_state_.reset(
339 new AuthAttemptState(UserContext(UserManager::kGuestUserName), 339 new AuthAttemptState(UserContext(UserManager::kGuestUserName),
340 user_manager::USER_TYPE_GUEST, 340 user_manager::USER_TYPE_GUEST,
341 false, // unlock 341 false, // unlock
342 false, // online_complete 342 false, // online_complete
343 false)); // user_is_new 343 false)); // user_is_new
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 Resolve(); 814 Resolve();
815 } 815 }
816 816
817 void ParallelAuthenticator::SetOwnerState(bool owner_check_finished, 817 void ParallelAuthenticator::SetOwnerState(bool owner_check_finished,
818 bool check_result) { 818 bool check_result) {
819 owner_is_verified_ = owner_check_finished; 819 owner_is_verified_ = owner_check_finished;
820 user_can_login_ = check_result; 820 user_can_login_ = check_result;
821 } 821 }
822 822
823 } // namespace chromeos 823 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698