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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/resource_request_detector.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/resource_request_detector.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc b/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc
index 521be3200575732b8a284b44fce8a265771d2ceb..4515c990aebf2ddf46083d2322e01c9ba5634853 100644
--- a/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc
@@ -181,8 +181,8 @@ void ResourceRequestDetector::ReportIncidentOnUIThread(
incident_data->set_origin(host_url.GetOrigin().spec());
incident_receiver_->AddIncidentForProfile(
- profile, base::WrapUnique(
- new ResourceRequestIncident(std::move(incident_data))));
+ profile,
+ base::MakeUnique<ResourceRequestIncident>(std::move(incident_data)));
}
}

Powered by Google App Engine
This is Rietveld 408576698