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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc

Issue 2259523003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
index cf0b0226ec6141f2a986e7d683a8d26fc12cefe6..d51055723b56ca706d68cb785088f5ef8fec6c9a 100644
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
@@ -398,8 +398,7 @@ IncidentReportingService::~IncidentReportingService() {
std::unique_ptr<IncidentReceiver>
IncidentReportingService::GetIncidentReceiver() {
- return base::WrapUnique(
- new Receiver(receiver_weak_ptr_factory_.GetWeakPtr()));
+ return base::MakeUnique<Receiver>(receiver_weak_ptr_factory_.GetWeakPtr());
}
std::unique_ptr<TrackedPreferenceValidationDelegate>

Powered by Google App Engine
This is Rietveld 408576698