refactor: update namespace for pwm switches

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/5444617
This commit is contained in:
Samuel Attard 2024-05-05 18:06:41 -07:00
Родитель d49a5bab0e
Коммит edd9e2688a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 1B5816524359D045
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -28,6 +28,7 @@
#include "components/os_crypt/sync/key_storage_config_linux.h"
#include "components/os_crypt/sync/key_storage_util_linux.h"
#include "components/os_crypt/sync/os_crypt.h"
#include "components/password_manager/core/browser/password_manager_switches.h"
#include "content/browser/browser_main_loop.h" // nogncheck
#include "content/public/browser/browser_child_process_host_delegate.h"
#include "content/public/browser/browser_child_process_host_iterator.h"
@ -521,13 +522,14 @@ void ElectronBrowserMainParts::PostCreateMainMessageLoop() {
std::unique_ptr<os_crypt::Config> config =
std::make_unique<os_crypt::Config>();
// Forward to os_crypt the flag to use a specific password store.
config->store = command_line.GetSwitchValueASCII(::switches::kPasswordStore);
config->store =
command_line.GetSwitchValueASCII(password_manager::kPasswordStore);
config->product_name = app_name;
config->application_name = app_name;
// c.f.
// https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/chrome_switches.cc;l=689;drc=9d82515060b9b75fa941986f5db7390299669ef1
config->should_use_preference =
command_line.HasSwitch(::switches::kEnableEncryptionSelection);
command_line.HasSwitch(password_manager::kEnableEncryptionSelection);
base::PathService::Get(DIR_SESSION_DATA, &config->user_data_path);
bool use_backend = !config->should_use_preference ||