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

Unified Diff: ios/chrome/browser/web_data_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
« no previous file with comments | « ios/chrome/browser/ui/autofill/autofill_client_ios.mm ('k') | ios/crnet/crnet_environment.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web_data_service_factory.cc
diff --git a/ios/chrome/browser/web_data_service_factory.cc b/ios/chrome/browser/web_data_service_factory.cc
index 6a81f74f2e61cd63c7cde24276c76546d8ec2d31..10075339401f2c011367cb5966b5a847c1a9b5d5 100644
--- a/ios/chrome/browser/web_data_service_factory.cc
+++ b/ios/chrome/browser/web_data_service_factory.cc
@@ -97,12 +97,12 @@ WebDataServiceFactory::~WebDataServiceFactory() {
std::unique_ptr<KeyedService> WebDataServiceFactory::BuildServiceInstanceFor(
web::BrowserState* context) const {
const base::FilePath& browser_state_path = context->GetStatePath();
- return base::WrapUnique(new WebDataServiceWrapper(
+ return base::MakeUnique<WebDataServiceWrapper>(
browser_state_path, GetApplicationContext()->GetApplicationLocale(),
web::WebThread::GetTaskRunnerForThread(web::WebThread::UI),
web::WebThread::GetTaskRunnerForThread(web::WebThread::DB),
ios::sync_start_util::GetFlareForSyncableService(browser_state_path),
- &DoNothingOnErrorCallback));
+ &DoNothingOnErrorCallback);
}
web::BrowserState* WebDataServiceFactory::GetBrowserStateToUse(
« no previous file with comments | « ios/chrome/browser/ui/autofill/autofill_client_ios.mm ('k') | ios/crnet/crnet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698