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

Side by Side Diff: components/signin/ios/browser/profile_oauth2_token_service_ios.mm

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/signin/ios/browser/profile_oauth2_token_service_ios.h" 5 #include "components/signin/ios/browser/profile_oauth2_token_service_ios.h"
6 6
7 #include <Foundation/Foundation.h> 7 #include <Foundation/Foundation.h>
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 class SSOAccessTokenFetcher : public OAuth2AccessTokenFetcher { 59 class SSOAccessTokenFetcher : public OAuth2AccessTokenFetcher {
60 public: 60 public:
61 SSOAccessTokenFetcher(OAuth2AccessTokenConsumer* consumer, 61 SSOAccessTokenFetcher(OAuth2AccessTokenConsumer* consumer,
62 ios::ProfileOAuth2TokenServiceIOSProvider* provider, 62 ios::ProfileOAuth2TokenServiceIOSProvider* provider,
63 const std::string account_id); 63 const std::string account_id);
64 virtual ~SSOAccessTokenFetcher(); 64 virtual ~SSOAccessTokenFetcher();
65 65
66 virtual void Start(const std::string& client_id, 66 virtual void Start(const std::string& client_id,
67 const std::string& client_secret, 67 const std::string& client_secret,
68 const std::vector<std::string>& scopes) OVERRIDE; 68 const std::vector<std::string>& scopes) override;
69 69
70 virtual void CancelRequest() OVERRIDE; 70 virtual void CancelRequest() override;
71 71
72 // Handles an access token response. 72 // Handles an access token response.
73 void OnAccessTokenResponse(NSString* token, 73 void OnAccessTokenResponse(NSString* token,
74 NSDate* expiration, 74 NSDate* expiration,
75 NSError* error); 75 NSError* error);
76 76
77 private: 77 private:
78 base::WeakPtrFactory<SSOAccessTokenFetcher> weak_factory_; 78 base::WeakPtrFactory<SSOAccessTokenFetcher> weak_factory_;
79 ios::ProfileOAuth2TokenServiceIOSProvider* provider_; // weak 79 ios::ProfileOAuth2TokenServiceIOSProvider* provider_; // weak
80 std::string account_id_; 80 std::string account_id_;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 DCHECK(thread_checker_.CalledOnValidThread()); 343 DCHECK(thread_checker_.CalledOnValidThread());
344 DCHECK(!account_id.empty()); 344 DCHECK(!account_id.empty());
345 345
346 if (accounts_.count(account_id) > 0) { 346 if (accounts_.count(account_id) > 0) {
347 CancelRequestsForAccount(account_id); 347 CancelRequestsForAccount(account_id);
348 ClearCacheForAccount(account_id); 348 ClearCacheForAccount(account_id);
349 accounts_.erase(account_id); 349 accounts_.erase(account_id);
350 FireRefreshTokenRevoked(account_id); 350 FireRefreshTokenRevoked(account_id);
351 } 351 }
352 } 352 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698