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

Unified Diff: chrome/browser/autocomplete/shortcuts_backend_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
Index: chrome/browser/autocomplete/shortcuts_backend_factory.cc
diff --git a/chrome/browser/autocomplete/shortcuts_backend_factory.cc b/chrome/browser/autocomplete/shortcuts_backend_factory.cc
index e97d93a222f2bd92f4e5735d67689f429ef9bfa9..6f3e42d66e93895b25ebb25586c63323f2e04943 100644
--- a/chrome/browser/autocomplete/shortcuts_backend_factory.cc
+++ b/chrome/browser/autocomplete/shortcuts_backend_factory.cc
@@ -92,7 +92,7 @@ scoped_refptr<ShortcutsBackend> ShortcutsBackendFactory::CreateShortcutsBackend(
bool suppress_db) {
scoped_refptr<ShortcutsBackend> backend(new ShortcutsBackend(
TemplateURLServiceFactory::GetForProfile(profile),
- base::WrapUnique(new UIThreadSearchTermsData(profile)),
+ base::MakeUnique<UIThreadSearchTermsData>(profile),
HistoryServiceFactory::GetForProfile(profile,
ServiceAccessType::EXPLICIT_ACCESS),
content::BrowserThread::GetTaskRunnerForThread(

Powered by Google App Engine
This is Rietveld 408576698