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

Unified Diff: ios/chrome/browser/search_engines/template_url_service_factory.cc

Issue 2256193002: 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: ios/chrome/browser/search_engines/template_url_service_factory.cc
diff --git a/ios/chrome/browser/search_engines/template_url_service_factory.cc b/ios/chrome/browser/search_engines/template_url_service_factory.cc
index 70be3ae975a95622a976c3e3a4f05a6c6eb1f827..7149b0140151fda53b62033ca5b2e7f6b7d19182 100644
--- a/ios/chrome/browser/search_engines/template_url_service_factory.cc
+++ b/ios/chrome/browser/search_engines/template_url_service_factory.cc
@@ -42,7 +42,7 @@ std::unique_ptr<KeyedService> BuildTemplateURLService(
web::BrowserState* context) {
ios::ChromeBrowserState* browser_state =
ios::ChromeBrowserState::FromBrowserState(context);
- return base::WrapUnique(new TemplateURLService(
+ return base::MakeUnique<TemplateURLService>(
browser_state->GetPrefs(),
base::WrapUnique(new ios::UIThreadSearchTermsData(browser_state)),
ios::WebDataServiceFactory::GetKeywordWebDataForBrowserState(
@@ -52,7 +52,7 @@ std::unique_ptr<KeyedService> BuildTemplateURLService(
browser_state, ServiceAccessType::EXPLICIT_ACCESS))),
ios::GoogleURLTrackerFactory::GetForBrowserState(browser_state),
GetApplicationContext()->GetRapporService(),
- GetDefaultSearchProviderChangedCallback()));
+ GetDefaultSearchProviderChangedCallback());
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698