}
// ProfileOAuth2TokenService overrides:
- virtual void Initialize(SigninClient* client) OVERRIDE;
+ virtual void Initialize(SigninClient* client) override;
virtual bool RefreshTokenIsAvailable(
- const std::string& account_id) const OVERRIDE;
+ const std::string& account_id) const override;
virtual void UpdateAuthError(
const std::string& account_id,
- const GoogleServiceAuthError& error) OVERRIDE;
- virtual std::vector<std::string> GetAccounts() OVERRIDE;
+ const GoogleServiceAuthError& error) override;
+ virtual std::vector<std::string> GetAccounts() override;
// Lists account at the OS level.
std::vector<std::string> GetSystemAccounts();
// Overridden from OAuth2TokenService to complete signout of all
// OA2TService aware accounts.
- virtual void RevokeAllCredentials() OVERRIDE;
+ virtual void RevokeAllCredentials() override;
protected:
friend class ProfileOAuth2TokenServiceFactory;
virtual OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
const std::string& account_id,
net::URLRequestContextGetter* getter,
- OAuth2AccessTokenConsumer* consumer) OVERRIDE;
+ OAuth2AccessTokenConsumer* consumer) override;
// Overridden from OAuth2TokenService to intercept token fetch requests and
// redirect them to the Account Manager.
virtual void InvalidateOAuth2Token(const std::string& account_id,
const std::string& client_id,
const ScopeSet& scopes,
- const std::string& access_token) OVERRIDE;
+ const std::string& access_token) override;
// Called to notify observers when a refresh token is available.
virtual void FireRefreshTokenAvailable(
- const std::string& account_id) OVERRIDE;
+ const std::string& account_id) override;
// Called to notify observers when a refresh token has been revoked.
- virtual void FireRefreshTokenRevoked(const std::string& account_id) OVERRIDE;
+ virtual void FireRefreshTokenRevoked(const std::string& account_id) override;
// Called to notify observers when refresh tokans have been loaded.
- virtual void FireRefreshTokensLoaded() OVERRIDE;
+ virtual void FireRefreshTokensLoaded() override;
+ private:
// Return whether |signed_in_account| is valid and we have access
// to all the tokens in |curr_account_ids|. If |force_notifications| is true,
// TokenAvailable notifications will be sent anyway, even if the account was
std::vector<std::string>& revoked_ids,
bool force_notifications);
- private:
base::android::ScopedJavaGlobalRef<jobject> java_ref_;
static bool is_testing_profile_;