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

Unified Diff: ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_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/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
diff --git a/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc b/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
index 570aa9b0338b95fce540bc8ed8182876a0a248b1..6f46ee9f58849a8bede17501cdf5e3de89631a02 100644
--- a/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
+++ b/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
@@ -38,6 +38,6 @@ IOSChromeContentSuggestionsServiceFactory::
std::unique_ptr<KeyedService>
IOSChromeContentSuggestionsServiceFactory::BuildServiceInstanceFor(
web::BrowserState* browser_state) const {
- return base::WrapUnique(new ntp_snippets::ContentSuggestionsService(
- ntp_snippets::ContentSuggestionsService::State::DISABLED));
+ return base::MakeUnique<ntp_snippets::ContentSuggestionsService>(
+ ntp_snippets::ContentSuggestionsService::State::DISABLED);
}

Powered by Google App Engine
This is Rietveld 408576698