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

Unified Diff: components/signin/core/browser/profile_oauth2_token_service.h

Issue 617183003: Make sure GetAuthenticatedAccountId() returns a canonicalized id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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: components/signin/core/browser/profile_oauth2_token_service.h
diff --git a/components/signin/core/browser/profile_oauth2_token_service.h b/components/signin/core/browser/profile_oauth2_token_service.h
index b6f133f946a6bd23c10ef2c8f9484ffde0499d34..fbc1fccc5a4ef8ffa0c49cb4fe462c2ea77c7f37 100644
--- a/components/signin/core/browser/profile_oauth2_token_service.h
+++ b/components/signin/core/browser/profile_oauth2_token_service.h
@@ -93,6 +93,10 @@ class ProfileOAuth2TokenService : public OAuth2TokenService,
const std::string& account_id,
const GoogleServiceAuthError& error) override;
+ // Validate that the account_id argument is valid. This method DCHECKs
+ // when invalid.
+ void ValidateAccountId(const std::string& account_id) const;
+
private:
// The client with which this instance was initialized, or NULL.
SigninClient* client_;

Powered by Google App Engine
This is Rietveld 408576698