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

Unified Diff: chrome/browser/signin/oauth2_token_service.h

Issue 15977002: Add ManagedUserTokenFetcher to fetch scoped-down tokens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 7 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/signin/oauth2_token_service.h
diff --git a/chrome/browser/signin/oauth2_token_service.h b/chrome/browser/signin/oauth2_token_service.h
index 9260f4179fae0ee9cdcb7d250ff90b577a074417..777ee28390dbbb90c411f81c1b98e6dbde27e1d0 100644
--- a/chrome/browser/signin/oauth2_token_service.h
+++ b/chrome/browser/signin/oauth2_token_service.h
@@ -81,9 +81,11 @@ class OAuth2TokenService {
// Checks in the cache for a valid access token, and if not found starts
// a request for an OAuth2 access token using the OAuth2 refresh token
// maintained by this instance. The caller owns the returned Request.
- // |scopes| is the set of scopes to get an access token for, |consumer| is
- // the object that will be called back with results if the returned request
- // is not deleted.
+ // |scopes| is the set of scopes to get an access token for. If the set is
+ // empty, the returned access token will have the same scope as the refresh
+ // token.
+ // |consumer| is the object that will be called back with results if the
+ // returned request is not deleted.
virtual scoped_ptr<Request> StartRequest(const ScopeSet& scopes,
Consumer* consumer);
@@ -148,12 +150,6 @@ class OAuth2TokenService {
Consumer* const consumer_;
};
- // Informs the consumer of |request| fetch results.
- static void InformConsumer(base::WeakPtr<RequestImpl> request,
- const GoogleServiceAuthError& error,
- const std::string& access_token,
- const base::Time& expiration_date);
-
private:
// Class that fetches an OAuth2 access token for a given set of scopes and
// OAuth2 refresh token.

Powered by Google App Engine
This is Rietveld 408576698