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

Unified Diff: chrome/browser/chromeos/login/auth/chrome_login_performer.h

Issue 1494153002: This CL replaces e-mail with AccountId in easy signin code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bugfix in original easy unlock code' Created 5 years 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/auth/chrome_login_performer.h
diff --git a/chrome/browser/chromeos/login/auth/chrome_login_performer.h b/chrome/browser/chromeos/login/auth/chrome_login_performer.h
index a0b670c5ee68e3fc5e866cf90e1501d4e3b4e8a2..695805cb86f7296190590071244c396b6f2c5608 100644
--- a/chrome/browser/chromeos/login/auth/chrome_login_performer.h
+++ b/chrome/browser/chromeos/login/auth/chrome_login_performer.h
@@ -20,6 +20,8 @@
#include "content/public/browser/notification_registrar.h"
#include "google_apis/gaia/google_service_auth_error.h"
+class AccountId;
+
namespace policy {
class WildcardLoginChecker;
}
@@ -33,14 +35,14 @@ class ChromeLoginPerformer : public LoginPerformer {
explicit ChromeLoginPerformer(Delegate* delegate);
~ChromeLoginPerformer() override;
- bool IsUserWhitelisted(const std::string& user_id,
+ bool IsUserWhitelisted(const AccountId& account_id,
bool* wildcard_match) override;
protected:
bool RunTrustedCheck(const base::Closure& callback) override;
void DidRunTrustedCheck(const base::Closure& callback);
- void RunOnlineWhitelistCheck(const std::string& user_id,
+ void RunOnlineWhitelistCheck(const AccountId& account_id,
bool wildcard_match,
const std::string& refresh_token,
const base::Closure& success_callback,
@@ -52,12 +54,12 @@ class ChromeLoginPerformer : public LoginPerformer {
UserContext TransformSupervisedKey(const UserContext& context) override;
- void SetupSupervisedUserFlow(const std::string& user_id) override;
+ void SetupSupervisedUserFlow(const AccountId& account_id) override;
- void SetupEasyUnlockUserFlow(const std::string& user_id) override;
+ void SetupEasyUnlockUserFlow(const AccountId& account_id) override;
scoped_refptr<Authenticator> CreateAuthenticator() override;
- bool CheckPolicyForUser(const std::string& user_id) override;
+ bool CheckPolicyForUser(const AccountId& account_id) override;
content::BrowserContext* GetSigninContext() override;
net::URLRequestContextGetter* GetSigninRequestContext() override;

Powered by Google App Engine
This is Rietveld 408576698