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

Unified Diff: google_apis/gaia/fake_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: google_apis/gaia/fake_oauth2_token_service.cc
diff --git a/google_apis/gaia/fake_oauth2_token_service.cc b/google_apis/gaia/fake_oauth2_token_service.cc
index 2b25e118620b295d5047b19f2fc00956dc4a3690..06b3b0f636086b6d650fbeef25c5518f8cb28de7 100644
--- a/google_apis/gaia/fake_oauth2_token_service.cc
+++ b/google_apis/gaia/fake_oauth2_token_service.cc
@@ -4,6 +4,8 @@
#include "google_apis/gaia/fake_oauth2_token_service.h"
+#include "base/memory/ptr_util.h"
+
FakeOAuth2TokenService::PendingRequest::PendingRequest() {
}
@@ -14,8 +16,8 @@ FakeOAuth2TokenService::PendingRequest::~PendingRequest() {
}
FakeOAuth2TokenService::FakeOAuth2TokenService()
- : OAuth2TokenService(new FakeOAuth2TokenServiceDelegate(nullptr)) {
-}
+ : OAuth2TokenService(
+ base::MakeUnique<FakeOAuth2TokenServiceDelegate>(nullptr)) {}
FakeOAuth2TokenService::~FakeOAuth2TokenService() {
}

Powered by Google App Engine
This is Rietveld 408576698