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

Unified Diff: components/signin/core/browser/profile_oauth2_token_service.cc

Issue 2685123002: Make OAuth2TokenService and subclasses take delegate by unique_ptr (Closed)
Patch Set: Created 3 years, 10 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/core/browser/profile_oauth2_token_service.cc
diff --git a/components/signin/core/browser/profile_oauth2_token_service.cc b/components/signin/core/browser/profile_oauth2_token_service.cc
index b7fd8d01da39ae763df0bd7cb1d03317541548f0..63f88c590500274c2b3a6a25b5e902e69ad6b372 100644
--- a/components/signin/core/browser/profile_oauth2_token_service.cc
+++ b/components/signin/core/browser/profile_oauth2_token_service.cc
@@ -17,8 +17,8 @@ void ProfileOAuth2TokenService::OnRefreshTokenRevoked(
}
ProfileOAuth2TokenService::ProfileOAuth2TokenService(
- OAuth2TokenServiceDelegate* delegate)
- : OAuth2TokenService(delegate) {
+ std::unique_ptr<OAuth2TokenServiceDelegate> delegate)
+ : OAuth2TokenService(std::move(delegate)) {
AddObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698