| Index: chrome/browser/signin/fake_profile_oauth2_token_service.h
|
| diff --git a/chrome/browser/signin/fake_profile_oauth2_token_service.h b/chrome/browser/signin/fake_profile_oauth2_token_service.h
|
| index 9a5b97c82318da520cbc7da0473251f5440d3c48..09d8a116d633cae3d03f4ee671c76185b386f942 100644
|
| --- a/chrome/browser/signin/fake_profile_oauth2_token_service.h
|
| +++ b/chrome/browser/signin/fake_profile_oauth2_token_service.h
|
| @@ -58,19 +58,6 @@ class FakeProfileOAuth2TokenService
|
| FakeProfileOAuth2TokenService();
|
| ~FakeProfileOAuth2TokenService() override;
|
|
|
| - // Overriden to make sure it works on Android.
|
| - bool RefreshTokenIsAvailable(const std::string& account_id) const override;
|
| -
|
| - // Overriden to make sure it works on iOS.
|
| - void LoadCredentials(const std::string& primary_account_id) override;
|
| -
|
| - std::vector<std::string> GetAccounts() override;
|
| -
|
| - // Overriden to make sure it works on Android. Simply calls
|
| - // IssueRefreshToken().
|
| - void UpdateCredentials(const std::string& account_id,
|
| - const std::string& refresh_token) override;
|
| -
|
| // Sets the current refresh token. If |token| is non-empty, this will invoke
|
| // OnRefreshTokenAvailable() on all Observers, otherwise this will invoke
|
| // OnRefreshTokenRevoked().
|
| @@ -122,18 +109,10 @@ class FakeProfileOAuth2TokenService
|
| const std::string& client_secret,
|
| const ScopeSet& scopes) override;
|
|
|
| - OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
|
| - const std::string& account_id,
|
| - net::URLRequestContextGetter* getter,
|
| - OAuth2AccessTokenConsumer* consumer) override;
|
| -
|
| void InvalidateOAuth2Token(const std::string& account_id,
|
| const std::string& client_id,
|
| const ScopeSet& scopes,
|
| const std::string& access_token) override;
|
| -
|
| - net::URLRequestContextGetter* GetRequestContext() override;
|
| -
|
| private:
|
| // Helper function to complete pending requests - if |all_scopes| is true,
|
| // then all pending requests are completed, otherwise, only those requests
|
| @@ -147,13 +126,8 @@ class FakeProfileOAuth2TokenService
|
| const std::string& access_token,
|
| const base::Time& expiration);
|
|
|
| - std::string GetRefreshToken(const std::string& account_id) const;
|
| -
|
| std::vector<PendingRequest> pending_requests_;
|
|
|
| - // Maps account ids to their refresh token strings.
|
| - std::map<std::string, std::string> refresh_tokens_;
|
| -
|
| // If true, then this fake service will post responses to
|
| // |FetchOAuth2Token| on the current run loop. There is no need to call
|
| // |IssueTokenForScope| in this case.
|
|
|