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

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

Issue 10832035: Switch from SignedSettings to DeviceSettingsService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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/login_performer.h
diff --git a/chrome/browser/chromeos/login/login_performer.h b/chrome/browser/chromeos/login/login_performer.h
index 43da2a5f9aebd0175e1cda0d212855780eaaa900..db7611ad04f215f8da79e9d62f364c294ac7a093 100644
--- a/chrome/browser/chromeos/login/login_performer.h
+++ b/chrome/browser/chromeos/login/login_performer.h
@@ -54,6 +54,13 @@ class LoginPerformer : public LoginStatusConsumer,
public content::NotificationObserver,
public OnlineAttemptHost::Delegate {
public:
+ typedef enum AuthorizationMode {
+ // Authorization performed internally by Chrome.
+ AUTH_MODE_INTERNAL,
+ // Authorization performed by an extension.
+ AUTH_MODE_EXTENSION
+ } AuthorizationMode;
+
// Delegate class to get notifications from the LoginPerformer.
class Delegate : public LoginStatusConsumer {
public:
@@ -84,12 +91,12 @@ class LoginPerformer : public LoginStatusConsumer,
virtual void OnOffTheRecordLoginSuccess() OVERRIDE;
virtual void OnPasswordChangeDetected() OVERRIDE;
- // Completes login process that has already been authenticated with
- // provided |username| and |password|.
- void CompleteLogin(const std::string& username, const std::string& password);
-
- // Performs login with the |username| and |password| specified.
- void Login(const std::string& username, const std::string& password);
+ // Performs a login for |username| and |password|. If auth_mode is
+ // AUTH_MODE_EXTENSION, there are no further auth checks, AUTH_MODE_INTERNAL
+ // will perform auth checks.
+ void PerformLogin(const std::string& username,
+ const std::string& password,
+ AuthorizationMode auth_mode);
// Performs login for the demo user.
void LoginDemoUser();
@@ -127,12 +134,6 @@ class LoginPerformer : public LoginStatusConsumer,
void set_delegate(Delegate* delegate) { delegate_ = delegate; }
- typedef enum AuthorizationMode {
- // Authorization performed internally by Chrome.
- AUTH_MODE_INTERNAL,
- // Authorization performed by an extension.
- AUTH_MODE_EXTENSION
- } AuthorizationMode;
AuthorizationMode auth_mode() const { return auth_mode_; }
protected:

Powered by Google App Engine
This is Rietveld 408576698