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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.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/existing_user_controller.h
diff --git a/chrome/browser/chromeos/login/existing_user_controller.h b/chrome/browser/chromeos/login/existing_user_controller.h
index 225512a2c45205a593085804fed107fd5f8a0632..37bf4334e87150d5ad4c90957c571bb01eef1ff6 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.h
+++ b/chrome/browser/chromeos/login/existing_user_controller.h
@@ -76,11 +76,9 @@ class ExistingUserController : public LoginDisplay::Delegate,
virtual void CreateAccount() OVERRIDE;
virtual void CreateLocallyManagedUser(const string16& display_name,
const std::string& password) OVERRIDE;
- virtual void CompleteLogin(const std::string& username,
- const std::string& password) OVERRIDE;
+ virtual void CompleteLogin(const UserCredentials& credentials) OVERRIDE;
virtual string16 GetConnectedNetworkName() OVERRIDE;
- virtual void Login(const std::string& username,
- const std::string& password) OVERRIDE;
+ virtual void Login(const UserCredentials& credentials) OVERRIDE;
virtual void MigrateUserData(const std::string& old_password) OVERRIDE;
virtual void LoginAsRetailModeUser() OVERRIDE;
virtual void LoginAsGuest() OVERRIDE;
@@ -132,8 +130,7 @@ class ExistingUserController : public LoginDisplay::Delegate,
// LoginPerformer::Delegate implementation:
virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE;
virtual void OnLoginSuccess(
- const std::string& username,
- const std::string& password,
+ const UserCredentials& credentials,
bool pending_requests,
bool using_oauth) OVERRIDE;
virtual void OnOffTheRecordLoginSuccess() OVERRIDE;
@@ -190,16 +187,14 @@ class ExistingUserController : public LoginDisplay::Delegate,
// Invoked to complete login. Login might be suspended if auto-enrollment
// has to be performed, and will resume once auto-enrollment completes.
void CompleteLoginInternal(
- const std::string& username,
- const std::string& password,
+ const UserCredentials& credentials,
DeviceSettingsService::OwnershipStatus ownership_status,
bool is_owner);
// Creates |login_performer_| if necessary and calls login() on it.
// The string arguments aren't passed by const reference because this is
// posted as |resume_login_callback_| and resets it.
- void PerformLogin(std::string username,
- std::string password,
+ void PerformLogin(const UserCredentials& credentials,
LoginPerformer::AuthorizationMode auth_mode);
void set_login_performer_delegate(LoginPerformer::Delegate* d) {
« no previous file with comments | « chrome/browser/chromeos/login/authenticator.h ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698