mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: use std::make_unique/base::MakeRefCounted when possible (#29510)
This commit is contained in:
@@ -112,8 +112,9 @@ void BrowserProcessImpl::PostEarlyInitialization() {
|
||||
user_pref_store->ReadPrefs();
|
||||
prefs_factory.set_user_prefs(user_pref_store);
|
||||
} else {
|
||||
prefs_factory.set_user_prefs(
|
||||
new OverlayUserPrefStore(new InMemoryPrefStore));
|
||||
auto user_pref_store =
|
||||
base::MakeRefCounted<OverlayUserPrefStore>(new InMemoryPrefStore);
|
||||
prefs_factory.set_user_prefs(user_pref_store);
|
||||
}
|
||||
local_state_ = prefs_factory.Create(std::move(pref_registry));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user