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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/module_load_analyzer_win.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/module_load_analyzer_win.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer_win.cc b/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer_win.cc
index 949b6e49ac7ed71262218f9814724247a862842e..8a8910bbe8447701c9e9b5be8a7e4d9ccd4f15a0 100644
--- a/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer_win.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer_win.cc
@@ -80,8 +80,9 @@ void ReportIncidentsForSuspiciousModules(
}
// Send the incident to the reporting service.
- incident_receiver->AddIncidentForProcess(base::WrapUnique(
- new SuspiciousModuleIncident(std::move(suspicious_module))));
+ incident_receiver->AddIncidentForProcess(
+ base::MakeUnique<SuspiciousModuleIncident>(
+ std::move(suspicious_module)));
}
}

Powered by Google App Engine
This is Rietveld 408576698