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

Unified Diff: chrome/browser/chromeos/login/managed/managed_user_creation_controller_new.cc

Issue 221813006: Various supervised user password fixes - 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload once again Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/managed/managed_user_creation_controller_new.cc
diff --git a/chrome/browser/chromeos/login/managed/managed_user_creation_controller_new.cc b/chrome/browser/chromeos/login/managed/managed_user_creation_controller_new.cc
index b9eaca0d5ca21b96777afc8890587119695e8264..8509e8a8c67db79178714eade6e73d7b52224c37 100644
--- a/chrome/browser/chromeos/login/managed/managed_user_creation_controller_new.cc
+++ b/chrome/browser/chromeos/login/managed/managed_user_creation_controller_new.cc
@@ -136,7 +136,7 @@ void ManagedUserCreationControllerNew::StartImport(
void ManagedUserCreationControllerNew::StartCreationImpl() {
DCHECK(creation_context_);
- DCHECK(stage_ == STAGE_INITIAL);
+ DCHECK_EQ(stage_, STAGE_INITIAL);
Bernhard Bauer 2014/04/02 14:05:28 Nit: expected value goes first.
Denis Kuznetsov (DE-MUC) 2014/04/02 14:48:51 Done.
VLOG(1) << "Starting supervised user creation";
VLOG(1) << " Phase 1 : Prepare keys";
@@ -249,7 +249,7 @@ void ManagedUserCreationControllerNew::OnAuthenticationFailure(
void ManagedUserCreationControllerNew::OnMountSuccess(
const std::string& mount_hash) {
DCHECK(creation_context_);
- DCHECK(stage_ == KEYS_GENERATED);
+ DCHECK_EQ(stage_, KEYS_GENERATED);
VLOG(1) << " Phase 2.2 : Created home dir with master key";
creation_context_->mount_hash = mount_hash;
@@ -281,7 +281,7 @@ void ManagedUserCreationControllerNew::OnMountSuccess(
void ManagedUserCreationControllerNew::OnAddKeySuccess() {
DCHECK(creation_context_);
- DCHECK(stage_ == KEYS_GENERATED);
+ DCHECK_EQ(stage_, KEYS_GENERATED);
stage_ = CRYPTOHOME_CREATED;
VLOG(1) << " Phase 3 : Create/update user on chrome.com/manage";
@@ -319,7 +319,7 @@ void ManagedUserCreationControllerNew::RegistrationCallback(
const GoogleServiceAuthError& error,
const std::string& token) {
DCHECK(creation_context_);
- DCHECK(stage_ == CRYPTOHOME_CREATED);
+ DCHECK_EQ(stage_, CRYPTOHOME_CREATED);
stage_ = DASHBOARD_CREATED;
@@ -344,7 +344,7 @@ void ManagedUserCreationControllerNew::RegistrationCallback(
void ManagedUserCreationControllerNew::OnManagedUserFilesStored(bool success) {
DCHECK(creation_context_);
- DCHECK(stage_ == DASHBOARD_CREATED);
+ DCHECK_EQ(stage_, DASHBOARD_CREATED);
if (!success) {
stage_ = STAGE_ERROR;

Powered by Google App Engine
This is Rietveld 408576698