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

Unified Diff: chrome/browser/bookmarks/managed_bookmark_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/bookmarks/bookmark_model_factory.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/managed_bookmark_service_factory.cc
diff --git a/chrome/browser/bookmarks/managed_bookmark_service_factory.cc b/chrome/browser/bookmarks/managed_bookmark_service_factory.cc
index c95ac10efadb1b2e5efa24ad2d06b2ebb996361a..8018099f8af1839456be7cb628a56cea0a0f26c4 100644
--- a/chrome/browser/bookmarks/managed_bookmark_service_factory.cc
+++ b/chrome/browser/bookmarks/managed_bookmark_service_factory.cc
@@ -30,9 +30,9 @@ std::string GetManagedBookmarksDomain(Profile* profile) {
std::unique_ptr<KeyedService> BuildManagedBookmarkService(
content::BrowserContext* context) {
Profile* profile = Profile::FromBrowserContext(context);
- return base::WrapUnique(new bookmarks::ManagedBookmarkService(
+ return base::MakeUnique<bookmarks::ManagedBookmarkService>(
profile->GetPrefs(),
- base::Bind(&GetManagedBookmarksDomain, base::Unretained(profile))));
+ base::Bind(&GetManagedBookmarksDomain, base::Unretained(profile)));
}
} // namespace
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_factory.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698