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

Unified Diff: chrome/browser/chromeos/login/auth/login_performer.cc

Issue 290483003: Tame the proliferation of UserContext constructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 7 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/auth/login_performer.cc
diff --git a/chrome/browser/chromeos/login/auth/login_performer.cc b/chrome/browser/chromeos/login/auth/login_performer.cc
index 2d528b32e292b5761382239ae5f40e82da13c8d0..b92b93a45a74c5ddc16958de1f0fc3f5854db382 100644
--- a/chrome/browser/chromeos/login/auth/login_performer.cc
+++ b/chrome/browser/chromeos/login/auth/login_performer.cc
@@ -4,8 +4,6 @@
#include "chrome/browser/chromeos/login/auth/login_performer.h"
-#include <string>
-
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
@@ -338,9 +336,7 @@ void LoginPerformer::StartLoginCompletion() {
base::Bind(&Authenticator::CompleteLogin, authenticator_.get(),
profile,
user_context_));
-
- user_context_.SetPassword(std::string());
- user_context_.SetAuthCode(std::string());
+ user_context_.ClearSecrets();
}
void LoginPerformer::StartAuthentication() {
@@ -360,8 +356,7 @@ void LoginPerformer::StartAuthentication() {
} else {
NOTREACHED();
}
- user_context_.SetPassword(std::string());
- user_context_.SetAuthCode(std::string());
+ user_context_.ClearSecrets();
}
void LoginPerformer::OnlineWildcardLoginCheckCompleted(
« no previous file with comments | « chrome/browser/chromeos/login/auth/extended_authenticator.cc ('k') | chrome/browser/chromeos/login/auth/mock_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698