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

Unified Diff: chrome/browser/chromeos/login/lock/screen_locker.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/lock/screen_locker.cc
diff --git a/chrome/browser/chromeos/login/lock/screen_locker.cc b/chrome/browser/chromeos/login/lock/screen_locker.cc
index 6e012e9b91a4a230f687878c52d87600cd8621cd..6a5152df51289d77d7c880c83460652c09065efc 100644
--- a/chrome/browser/chromeos/login/lock/screen_locker.cc
+++ b/chrome/browser/chromeos/login/lock/screen_locker.cc
@@ -268,12 +268,7 @@ void ScreenLocker::UnlockOnLoginSuccess() {
if (login_status_consumer_) {
login_status_consumer_->OnLoginSuccess(
- UserContext(authentication_capture_->user_context.GetUserID(),
- authentication_capture_->user_context.GetPassword(),
- authentication_capture_->user_context.GetAuthCode(),
- authentication_capture_->user_context.GetUserIDHash(),
- authentication_capture_->user_context.IsUsingOAuth(),
- authentication_capture_->user_context.GetAuthFlow()));
+ authentication_capture_->user_context);
}
authentication_capture_.reset();
weak_factory_.InvalidateWeakPtrs();

Powered by Google App Engine
This is Rietveld 408576698