chore: bump chromium to 107.0.5286.0 (main) (#35590)
* chore: bump chromium in DEPS to 107.0.5286.0 * 3866335: media: Rename KeySystemProperties to KeySystemInfo - file renaming3866335
* 3864686: [PA] Introduce *Scan buildflag3864686
* chore: fixup patch indices * 3849359: Remove unused PrefValueStore::Delegate3849359
* 3873005: [CodeHealth] Modernising extensions Tab utils3873005
* 3846595: Auto-select PipeWire target once selection is made3846595
* 3826169: [json-schema-compiler] Support abs::optional<bool>3826169
* fixup! Remove unused PrefValueStore::Delegate Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
parent
a0dbae72c8
commit
b0036ea43a
62 changed files with 164 additions and 265 deletions
|
@ -45,7 +45,6 @@
|
|||
#include "shell/browser/electron_download_manager_delegate.h"
|
||||
#include "shell/browser/electron_permission_manager.h"
|
||||
#include "shell/browser/net/resolve_proxy_helper.h"
|
||||
#include "shell/browser/pref_store_delegate.h"
|
||||
#include "shell/browser/protocol_registry.h"
|
||||
#include "shell/browser/special_storage_policy.h"
|
||||
#include "shell/browser/ui/inspectable_web_contents.h"
|
||||
|
@ -110,7 +109,8 @@ ElectronBrowserContext::browser_context_map() {
|
|||
ElectronBrowserContext::ElectronBrowserContext(const std::string& partition,
|
||||
bool in_memory,
|
||||
base::Value::Dict options)
|
||||
: storage_policy_(base::MakeRefCounted<SpecialStoragePolicy>()),
|
||||
: in_memory_pref_store_(new ValueMapPrefStore),
|
||||
storage_policy_(base::MakeRefCounted<SpecialStoragePolicy>()),
|
||||
protocol_registry_(base::WrapUnique(new ProtocolRegistry)),
|
||||
in_memory_(in_memory),
|
||||
ssl_config_(network::mojom::SSLConfig::New()) {
|
||||
|
@ -170,6 +170,7 @@ void ElectronBrowserContext::InitPrefs() {
|
|||
base::MakeRefCounted<JsonPrefStore>(prefs_path);
|
||||
pref_store->ReadPrefs(); // Synchronous.
|
||||
prefs_factory.set_user_prefs(pref_store);
|
||||
prefs_factory.set_command_line_prefs(in_memory_pref_store());
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
if (!in_memory_) {
|
||||
|
@ -210,10 +211,7 @@ void ElectronBrowserContext::InitPrefs() {
|
|||
language::LanguagePrefs::RegisterProfilePrefs(registry.get());
|
||||
#endif
|
||||
|
||||
prefs_ = prefs_factory.Create(
|
||||
registry.get(),
|
||||
std::make_unique<PrefStoreDelegate>(weak_factory_.GetWeakPtr()));
|
||||
prefs_->UpdateCommandLinePrefStore(new ValueMapPrefStore);
|
||||
prefs_ = prefs_factory.Create(registry.get());
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS) || \
|
||||
BUILDFLAG(ENABLE_BUILTIN_SPELLCHECKER)
|
||||
user_prefs::UserPrefs::Set(this, prefs_.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue