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

Unified Diff: google_apis/gaia/oauth2_token_service_delegate.h

Issue 1380103004: Delay fetching account info until OnRefreshTokensLoaded(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 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: google_apis/gaia/oauth2_token_service_delegate.h
diff --git a/google_apis/gaia/oauth2_token_service_delegate.h b/google_apis/gaia/oauth2_token_service_delegate.h
index 24bf063c05925b82b09de22527a58c3e8ce87d01..21fa91d39adcb888dbbf68c4227af0b23e12e49b 100644
--- a/google_apis/gaia/oauth2_token_service_delegate.h
+++ b/google_apis/gaia/oauth2_token_service_delegate.h
@@ -54,6 +54,10 @@ class OAuth2TokenServiceDelegate {
void AddObserver(OAuth2TokenService::Observer* observer);
void RemoveObserver(OAuth2TokenService::Observer* observer);
+ // Android uses the account name for identifying the account whereas Chrome
+ // uses the account id. This mapping needs to be seeded usage.
nyquist 2015/10/15 19:33:45 The last sentence here seems a bit off. Do you mea
+ virtual bool NeedsAccountIdNameMap() const;
+
protected:
// Called by subclasses to notify observers.
virtual void FireRefreshTokenAvailable(const std::string& account_id);

Powered by Google App Engine
This is Rietveld 408576698