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

Unified Diff: ios/chrome/browser/application_context_impl.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
« no previous file with comments | « no previous file | ios/chrome/browser/autocomplete/autocomplete_classifier_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/application_context_impl.cc
diff --git a/ios/chrome/browser/application_context_impl.cc b/ios/chrome/browser/application_context_impl.cc
index 83b6a89dbc9920b50296b77a9e15ff7309635055..0b048908cef1764ff60c9d0ee9e088fa026cae78 100644
--- a/ios/chrome/browser/application_context_impl.cc
+++ b/ios/chrome/browser/application_context_impl.cc
@@ -222,8 +222,9 @@ ApplicationContextImpl::GetMetricsServicesManager() {
DCHECK(thread_checker_.CalledOnValidThread());
if (!metrics_services_manager_) {
metrics_services_manager_.reset(
- new metrics_services_manager::MetricsServicesManager(base::WrapUnique(
- new IOSChromeMetricsServicesManagerClient(GetLocalState()))));
+ new metrics_services_manager::MetricsServicesManager(
+ base::MakeUnique<IOSChromeMetricsServicesManagerClient>(
+ GetLocalState())));
}
return metrics_services_manager_.get();
}
« no previous file with comments | « no previous file | ios/chrome/browser/autocomplete/autocomplete_classifier_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698