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

Unified Diff: components/rappor/rappor_service.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/rappor/rappor_service.cc
diff --git a/components/rappor/rappor_service.cc b/components/rappor/rappor_service.cc
index a572c174abf379f79a216c64aa0467864a5f543e..40bae451a9f35e2093956c4c7f9eb264239b892c 100644
--- a/components/rappor/rappor_service.cc
+++ b/components/rappor/rappor_service.cc
@@ -84,7 +84,7 @@ void RapporService::Initialize(net::URLRequestContextGetter* request_context) {
}
DVLOG(1) << "RapporService reporting to " << server_url.spec();
InitializeInternal(
- base::WrapUnique(new LogUploader(server_url, kMimeType, request_context)),
+ base::MakeUnique<LogUploader>(server_url, kMimeType, request_context),
internal::LoadCohort(pref_service_), internal::LoadSecret(pref_service_));
}

Powered by Google App Engine
This is Rietveld 408576698