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

Unified Diff: components/signin/ios/browser/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 side-by-side diff with in-line comments
Download patch
Index: components/signin/ios/browser/profile_oauth2_token_service_ios_delegate.mm
diff --git a/components/signin/ios/browser/profile_oauth2_token_service_ios_delegate.mm b/components/signin/ios/browser/profile_oauth2_token_service_ios_delegate.mm
index aaee0a2656c0deeb455f2a8b53972258b58542c2..6577c507280c570845d273831b832c267314cf32 100644
--- a/components/signin/ios/browser/profile_oauth2_token_service_ios_delegate.mm
+++ b/components/signin/ios/browser/profile_oauth2_token_service_ios_delegate.mm
@@ -177,11 +177,11 @@ ProfileOAuth2TokenServiceIOSDelegate::AccountStatus::GetAuthStatus() const {
ProfileOAuth2TokenServiceIOSDelegate::ProfileOAuth2TokenServiceIOSDelegate(
SigninClient* client,
- ProfileOAuth2TokenServiceIOSProvider* provider,
+ std::unique_ptr<ProfileOAuth2TokenServiceIOSProvider> provider,
AccountTrackerService* account_tracker_service,
SigninErrorController* signin_error_controller)
: client_(client),
- provider_(provider),
+ provider_(std::move(provider)),
account_tracker_service_(account_tracker_service),
signin_error_controller_(signin_error_controller) {
DCHECK(client_);
@@ -302,7 +302,7 @@ ProfileOAuth2TokenServiceIOSDelegate::CreateAccessTokenFetcher(
OAuth2AccessTokenConsumer* consumer) {
AccountInfo account_info =
account_tracker_service_->GetAccountInfo(account_id);
- return new SSOAccessTokenFetcher(consumer, provider_, account_info);
+ return new SSOAccessTokenFetcher(consumer, provider_.get(), account_info);
}
std::vector<std::string> ProfileOAuth2TokenServiceIOSDelegate::GetAccounts() {

Powered by Google App Engine
This is Rietveld 408576698