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

Unified Diff: chrome/browser/chromeos/login/fake_login_utils.cc

Issue 296773002: Add a Key class (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/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);
}
}
« no previous file with comments | « chrome/browser/chromeos/login/fake_login_utils.h ('k') | chrome/browser/chromeos/login/lock/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698