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

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: Address review comments 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 087818492754d27afc20e5536e605807d285859e..d88c40ce9f2f4c73c9bc1670146f75a881a54931 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