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

Unified Diff: chrome/browser/sync/chrome_sync_client.cc

Issue 2422253002: [Sync] Rewriting ".reset(new" pattern to use "= base::MakeUnique" instead. (Closed)
Patch Set: Fixing compile. Created 4 years, 2 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 | chrome/browser/sync/profile_sync_service_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/chrome_sync_client.cc
diff --git a/chrome/browser/sync/chrome_sync_client.cc b/chrome/browser/sync/chrome_sync_client.cc
index 9bf1459788f85cab5d8ee3628243ca2298486b05..c02c753b0c9bf2ac18e2cf7a3b39bf494471c32c 100644
--- a/chrome/browser/sync/chrome_sync_client.cc
+++ b/chrome/browser/sync/chrome_sync_client.cc
@@ -206,7 +206,7 @@ void ChromeSyncClient::Initialize() {
net::URLRequestContextGetter* url_request_context_getter =
profile_->GetRequestContext();
- component_factory_.reset(new ProfileSyncComponentsFactoryImpl(
+ component_factory_ = base::MakeUnique<ProfileSyncComponentsFactoryImpl>(
this, chrome::GetChannel(), chrome::GetVersionString(),
ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_TABLET,
*base::CommandLine::ForCurrentProcess(),
@@ -216,7 +216,7 @@ void ChromeSyncClient::Initialize() {
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::DB),
token_service, url_request_context_getter, web_data_service_,
- password_store_));
+ password_store_);
}
}
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698