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

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

Issue 885283009: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/android_profile_oauth2_token_service.h
diff --git a/chrome/browser/signin/android_profile_oauth2_token_service.h b/chrome/browser/signin/android_profile_oauth2_token_service.h
index cae22f71df699630122034025882b703e3cf73a8..f4cb0a54379761a0cdebfe181ebeee53bc375bd1 100644
--- a/chrome/browser/signin/android_profile_oauth2_token_service.h
+++ b/chrome/browser/signin/android_profile_oauth2_token_service.h
@@ -44,15 +44,12 @@ class AndroidProfileOAuth2TokenService : public ProfileOAuth2TokenService {
}
// ProfileOAuth2TokenService overrides:
- virtual void Initialize(
- SigninClient* client,
- SigninErrorController* signin_error_controller) override;
- virtual bool RefreshTokenIsAvailable(
- 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;
+ void Initialize(SigninClient* client,
+ SigninErrorController* signin_error_controller) override;
+ bool RefreshTokenIsAvailable(const std::string& account_id) const override;
+ void UpdateAuthError(const std::string& account_id,
+ const GoogleServiceAuthError& error) override;
+ std::vector<std::string> GetAccounts() override;
// Lists account at the OS level.
std::vector<std::string> GetSystemAccounts();
@@ -86,32 +83,31 @@ class AndroidProfileOAuth2TokenService : public ProfileOAuth2TokenService {
// Overridden from OAuth2TokenService to complete signout of all
// OA2TService aware accounts.
- virtual void RevokeAllCredentials() override;
+ void RevokeAllCredentials() override;
protected:
friend class ProfileOAuth2TokenServiceFactory;
AndroidProfileOAuth2TokenService();
- virtual ~AndroidProfileOAuth2TokenService();
+ ~AndroidProfileOAuth2TokenService() override;
- virtual OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
+ OAuth2AccessTokenFetcher* CreateAccessTokenFetcher(
const std::string& account_id,
net::URLRequestContextGetter* getter,
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;
+ void InvalidateOAuth2Token(const std::string& account_id,
+ const std::string& client_id,
+ const ScopeSet& scopes,
+ 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;
+ void FireRefreshTokenAvailable(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;
+ void FireRefreshTokenRevoked(const std::string& account_id) override;
// Called to notify observers when refresh tokans have been loaded.
- virtual void FireRefreshTokensLoaded() override;
+ void FireRefreshTokensLoaded() override;
private:
// Return whether |signed_in_account| is valid and we have access
« no previous file with comments | « chrome/browser/sessions/in_memory_tab_restore_service.h ('k') | chrome/browser/signin/android_profile_oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698