Index: chrome/browser/chromeos/login/fake_login_utils.cc |
diff --git a/chrome/browser/chromeos/login/fake_login_utils.cc b/chrome/browser/chromeos/login/fake_login_utils.cc |
index 104a856acf49116556fcc42359883e31279bac3c..11a2dcf3c54e977ab5830f854ac39487d5d3c1d8 100644 |
--- a/chrome/browser/chromeos/login/fake_login_utils.cc |
+++ b/chrome/browser/chromeos/login/fake_login_utils.cc |
@@ -101,8 +101,7 @@ void FakeLoginUtils::SetFirstLoginPrefs(PrefService* prefs) { |
scoped_refptr<Authenticator> FakeLoginUtils::CreateAuthenticator( |
LoginStatusConsumer* consumer) { |
- authenticator_ = |
- new MockAuthenticator(consumer, expected_username_, expected_password_); |
+ authenticator_ = new MockAuthenticator(consumer, expected_user_context_); |
return authenticator_; |
} |
@@ -114,13 +113,11 @@ void FakeLoginUtils::InitRlzDelayed(Profile* user_profile) { |
NOTREACHED() << "Method not implemented."; |
} |
-void FakeLoginUtils::SetExpectedCredentials(const std::string& username, |
- const std::string& password) { |
- expected_username_ = username; |
- expected_password_ = password; |
- if (authenticator_.get()) { |
+void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { |
+ expected_user_context_ = user_context; |
+ if (authenticator_) { |
static_cast<MockAuthenticator*>(authenticator_.get())-> |
- SetExpectedCredentials(username, password); |
+ SetExpectedCredentials(user_context); |
} |
} |