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

Unified Diff: chrome/browser/chromeos/login/mock_authenticator.h

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 years, 9 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/mock_authenticator.h
diff --git a/chrome/browser/chromeos/login/mock_authenticator.h b/chrome/browser/chromeos/login/mock_authenticator.h
index 68f818de90b427f6e38529bb8cb7aa99b94d54e0..90a526a0caae4d80382c332e9ae25d743611bbae 100644
--- a/chrome/browser/chromeos/login/mock_authenticator.h
+++ b/chrome/browser/chromeos/login/mock_authenticator.h
@@ -27,20 +27,18 @@ class MockAuthenticator : public Authenticator {
}
virtual void CompleteLogin(Profile* profile,
- const std::string& username,
- const std::string& password) OVERRIDE;
+ const UserCredentials& credentials) OVERRIDE;
virtual void AuthenticateToLogin(Profile* profile,
- const std::string& username,
- const std::string& password,
+ const UserCredentials& credentials,
const std::string& login_token,
const std::string& login_captcha) OVERRIDE;
- virtual void AuthenticateToUnlock(const std::string& username,
- const std::string& password) OVERRIDE;
+ virtual void AuthenticateToUnlock(
+ const UserCredentials& credentials) OVERRIDE;
- virtual void LoginAsLocallyManagedUser(const std::string& username,
- const std::string& password) OVERRIDE;
+ virtual void LoginAsLocallyManagedUser(
+ const UserCredentials& credentials) OVERRIDE;
virtual void LoginRetailMode() OVERRIDE;
virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE;
virtual void LoginOffTheRecord() OVERRIDE;
@@ -57,8 +55,7 @@ class MockAuthenticator : public Authenticator {
virtual void ResyncEncryptedData() OVERRIDE {}
virtual void RetryAuth(Profile* profile,
- const std::string& username,
- const std::string& password,
+ const UserCredentials& credentials,
const std::string& login_token,
const std::string& login_captcha) OVERRIDE {}

Powered by Google App Engine
This is Rietveld 408576698