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

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

Issue 2121083004: Upstream ProfileOAuth2TokenServiceProviderImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style nits Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/fake_profile_oauth2_token_service_ios_de legate.h" 5 #include "components/signin/ios/browser/fake_profile_oauth2_token_service_ios_de legate.h"
6
7 #include "components/signin/ios/browser/profile_oauth2_token_service_ios_provide r.h"
6 #include "google_apis/gaia/oauth2_access_token_fetcher_impl.h" 8 #include "google_apis/gaia/oauth2_access_token_fetcher_impl.h"
7 9
8 FakeProfileOAuth2TokenServiceIOSDelegate:: 10 FakeProfileOAuth2TokenServiceIOSDelegate::
9 FakeProfileOAuth2TokenServiceIOSDelegate( 11 FakeProfileOAuth2TokenServiceIOSDelegate(
10 SigninClient* client, 12 SigninClient* client,
11 ProfileOAuth2TokenServiceIOSProvider* provider, 13 std::unique_ptr<ProfileOAuth2TokenServiceIOSProvider> provider,
12 AccountTrackerService* account_tracker_service, 14 AccountTrackerService* account_tracker_service,
13 SigninErrorController* signin_error_controller) 15 SigninErrorController* signin_error_controller)
14 : ProfileOAuth2TokenServiceIOSDelegate(client, 16 : ProfileOAuth2TokenServiceIOSDelegate(client,
15 provider, 17 std::move(provider),
16 account_tracker_service, 18 account_tracker_service,
17 signin_error_controller) {} 19 signin_error_controller) {}
18 20
19 FakeProfileOAuth2TokenServiceIOSDelegate:: 21 FakeProfileOAuth2TokenServiceIOSDelegate::
20 ~FakeProfileOAuth2TokenServiceIOSDelegate() {} 22 ~FakeProfileOAuth2TokenServiceIOSDelegate() {}
21 23
22 OAuth2AccessTokenFetcher* 24 OAuth2AccessTokenFetcher*
23 FakeProfileOAuth2TokenServiceIOSDelegate::CreateAccessTokenFetcher( 25 FakeProfileOAuth2TokenServiceIOSDelegate::CreateAccessTokenFetcher(
24 const std::string& account_id, 26 const std::string& account_id,
25 net::URLRequestContextGetter* getter, 27 net::URLRequestContextGetter* getter,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 auth_errors_.emplace(account_id, 125 auth_errors_.emplace(account_id,
124 GoogleServiceAuthError(GoogleServiceAuthError::NONE)); 126 GoogleServiceAuthError(GoogleServiceAuthError::NONE));
125 FireRefreshTokenAvailable(account_id); 127 FireRefreshTokenAvailable(account_id);
126 } 128 }
127 } 129 }
128 130
129 void FakeProfileOAuth2TokenServiceIOSDelegate::RevokeCredentials( 131 void FakeProfileOAuth2TokenServiceIOSDelegate::RevokeCredentials(
130 const std::string& account_id) { 132 const std::string& account_id) {
131 IssueRefreshTokenForUser(account_id, std::string()); 133 IssueRefreshTokenForUser(account_id, std::string());
132 } 134 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698