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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/screenlock_private_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index a72b44deeec813a4cfac3347eae1f8101f363a92..45769d88ca8538d01de3c3385ec4b90bf6b45964 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -140,9 +140,10 @@ class StubLogin : public LoginStatusConsumer,
StubLogin(std::string username, std::string password)
: profile_prepared_(false) {
authenticator_ = LoginUtils::Get()->CreateAuthenticator(this);
- authenticator_.get()->AuthenticateToLogin(
- ProfileHelper::GetSigninProfile(),
- UserContext(username, password, std::string() /* auth_code */));
+ UserContext user_context(username);
+ user_context.SetPassword(password);
+ authenticator_.get()->AuthenticateToLogin(ProfileHelper::GetSigninProfile(),
+ user_context);
}
virtual ~StubLogin() {
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/screenlock_private_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698