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

Unified Diff: extensions/shell/browser/shell_oauth2_token_service.h

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address final comments Created 5 years, 6 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: extensions/shell/browser/shell_oauth2_token_service.h
diff --git a/extensions/shell/browser/shell_oauth2_token_service.h b/extensions/shell/browser/shell_oauth2_token_service.h
index 208c349571e888718b8ca9b572168c7e752873ee..c93c9f209924cda9a8057b8aa0221442f323ae56 100644
--- a/extensions/shell/browser/shell_oauth2_token_service.h
+++ b/extensions/shell/browser/shell_oauth2_token_service.h
@@ -30,29 +30,10 @@ class ShellOAuth2TokenService : public OAuth2TokenService {
// Returns the single instance for app_shell.
static ShellOAuth2TokenService* GetInstance();
- std::string account_id() const { return account_id_; }
-
- // Sets the current user account and refresh token.
void SetRefreshToken(const std::string& account_id,
const std::string& refresh_token);
- // OAuth2TokenService:
- bool RefreshTokenIsAvailable(const std::string& account_id) const override;
- OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
- const std::string& account_id,
- net::URLRequestContextGetter* getter,
- OAuth2AccessTokenConsumer* consumer) override;
- net::URLRequestContextGetter* GetRequestContext() override;
-
- private:
- // Not owned.
- content::BrowserContext* browser_context_;
-
- // User account id, such as "foo@gmail.com".
- std::string account_id_;
-
- // Cached copy of an OAuth2 refresh token. Not stored on disk.
- std::string refresh_token_;
+ std::string AccountId() const;
DISALLOW_COPY_AND_ASSIGN(ShellOAuth2TokenService);
};
« no previous file with comments | « extensions/shell/browser/api/identity/identity_api.cc ('k') | extensions/shell/browser/shell_oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698