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

Unified Diff: chrome/browser/prefs/chrome_pref_service_factory.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky Created 4 years, 3 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/prefs/chrome_pref_service_factory.cc
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.cc b/chrome/browser/prefs/chrome_pref_service_factory.cc
index 1846cda90dc3a48bb2320c437a8e2e22e87bc227..1d077c344389dfe3ac70422ff41d97127ebb1ac3 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
@@ -411,9 +411,9 @@ std::unique_ptr<ProfilePrefStoreManager> CreateProfilePrefStoreManager(
seed = ResourceBundle::GetSharedInstance().GetRawDataResource(
IDR_PREF_HASH_SEED_BIN).as_string();
#endif
- return base::WrapUnique(new ProfilePrefStoreManager(
+ return base::MakeUnique<ProfilePrefStoreManager>(
profile_path, GetTrackingConfiguration(), kTrackedPrefsReportingIDsCount,
- seed, device_id, g_browser_process->local_state()));
+ seed, device_id, g_browser_process->local_state());
}
void PrepareFactory(syncable_prefs::PrefServiceSyncableFactory* factory,
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_unittest.cc ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698