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

Unified Diff: chrome/browser/history/history_service_factory.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky Created 4 years, 3 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
« no previous file with comments | « chrome/browser/history/chrome_history_client.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_service_factory.cc
diff --git a/chrome/browser/history/history_service_factory.cc b/chrome/browser/history/history_service_factory.cc
index ae573881e9f6aa76fbba66440ad33f617f5f9c3e..95ec9336b299a9e8bd3eaaefbdb761df37d4478f 100644
--- a/chrome/browser/history/history_service_factory.cc
+++ b/chrome/browser/history/history_service_factory.cc
@@ -79,9 +79,9 @@ KeyedService* HistoryServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
std::unique_ptr<history::HistoryService> history_service(
new history::HistoryService(
- base::WrapUnique(new ChromeHistoryClient(
- BookmarkModelFactory::GetForBrowserContext(context))),
- base::WrapUnique(new history::ContentVisitDelegate(context))));
+ base::MakeUnique<ChromeHistoryClient>(
+ BookmarkModelFactory::GetForBrowserContext(context)),
+ base::MakeUnique<history::ContentVisitDelegate>(context)));
if (!history_service->Init(
history::HistoryDatabaseParamsForPath(context->GetPath()))) {
return nullptr;
« no previous file with comments | « chrome/browser/history/chrome_history_client.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698