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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.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/last_download_finder_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
index a360ddf6561ecf594893df04589f99ddb650ef6f..a35426e079327efd33a40c91dca5a749f2d654b6 100644
--- a/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
@@ -71,8 +71,8 @@ std::unique_ptr<KeyedService> BuildHistoryService(
std::unique_ptr<history::HistoryService> history_service(
new history::HistoryService(
- base::WrapUnique(new ChromeHistoryClient(
- BookmarkModelFactory::GetForBrowserContext(profile))),
+ base::MakeUnique<ChromeHistoryClient>(
+ BookmarkModelFactory::GetForBrowserContext(profile)),
std::unique_ptr<history::VisitDelegate>()));
if (history_service->Init(
history::HistoryDatabaseParamsForPath(profile->GetPath()))) {

Powered by Google App Engine
This is Rietveld 408576698