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

Unified Diff: chrome/browser/ui/views/frame/test_with_browser_view.cc

Issue 2251263003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/ui/views/frame/test_with_browser_view.cc
diff --git a/chrome/browser/ui/views/frame/test_with_browser_view.cc b/chrome/browser/ui/views/frame/test_with_browser_view.cc
index 251b991b9acc9164b34e0ffd8dcd5303ebd9913f..967ffc279d02cb59fa31bbfc9d4ec4fee302bd0c 100644
--- a/chrome/browser/ui/views/frame/test_with_browser_view.cc
+++ b/chrome/browser/ui/views/frame/test_with_browser_view.cc
@@ -37,7 +37,7 @@ namespace {
std::unique_ptr<KeyedService> CreateTemplateURLService(
content::BrowserContext* context) {
Profile* profile = static_cast<Profile*>(context);
- return base::WrapUnique(new TemplateURLService(
+ return base::MakeUnique<TemplateURLService>(
profile->GetPrefs(),
std::unique_ptr<SearchTermsData>(new UIThreadSearchTermsData(profile)),
WebDataServiceFactory::GetKeywordWebDataForProfile(
@@ -46,19 +46,19 @@ std::unique_ptr<KeyedService> CreateTemplateURLService(
new ChromeTemplateURLServiceClient(
HistoryServiceFactory::GetForProfile(
profile, ServiceAccessType::EXPLICIT_ACCESS))),
- nullptr, nullptr, base::Closure()));
+ nullptr, nullptr, base::Closure());
}
std::unique_ptr<KeyedService> CreateAutocompleteClassifier(
content::BrowserContext* context) {
Profile* profile = static_cast<Profile*>(context);
- return base::WrapUnique(new AutocompleteClassifier(
+ return base::MakeUnique<AutocompleteClassifier>(
base::WrapUnique(new AutocompleteController(
base::WrapUnique(new ChromeAutocompleteProviderClient(profile)),
nullptr, AutocompleteClassifier::kDefaultOmniboxProviders)),
std::unique_ptr<AutocompleteSchemeClassifier>(
- new TestSchemeClassifier())));
+ new TestSchemeClassifier()));
}
} // namespace
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/infobars/alternate_nav_infobar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698