diff --git a/shell/browser/electron_browser_main_parts.cc b/shell/browser/electron_browser_main_parts.cc index c843ecbbce..68012f557b 100644 --- a/shell/browser/electron_browser_main_parts.cc +++ b/shell/browser/electron_browser_main_parts.cc @@ -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 config = std::make_unique(); // 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 ||