Files
brave-core/patches/components-os_crypt-sync-key_storage_linux.cc.patch
T

32 lines
1.4 KiB
Diff

diff --git a/components/os_crypt/sync/key_storage_linux.cc b/components/os_crypt/sync/key_storage_linux.cc
index d9e06d9b901c99a506d52d13d6da6173dbd58090..0ec39b3306a8d0a8c3795ee5612ef50f43f2ba40 100644
--- a/components/os_crypt/sync/key_storage_linux.cc
+++ b/components/os_crypt/sync/key_storage_linux.cc
@@ -29,8 +29,7 @@
const char KeyStorageLinux::kFolderName[] = "Chrome Keys";
const char KeyStorageLinux::kKey[] = "Chrome Safe Storage";
#else
-const char KeyStorageLinux::kFolderName[] = "Chromium Keys";
-const char KeyStorageLinux::kKey[] = "Chromium Safe Storage";
+BRAVE_KEY_STORAGE_LINUX
#endif
namespace {
@@ -124,6 +123,7 @@ std::unique_ptr<KeyStorageLinux> KeyStorageLinux::CreateService(
std::unique_ptr<KeyStorageLinux> key_storage;
#if defined(USE_LIBSECRET) || defined(USE_KWALLET)
key_storage = CreateServiceInternal(selected_backend, config);
+ BRAVE_KEY_STORAGE_LINUX_CREATE_SERVICE
#endif // defined(USE_LIBSECRET) || defined(USE_KWALLET)
UMA_HISTOGRAM_ENUMERATION(
@@ -143,7 +143,7 @@ std::unique_ptr<KeyStorageLinux> KeyStorageLinux::CreateServiceInternal(
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
static const base::NoDestructor<std::string> kDefaultApplicationName("chrome");
#else
- static const base::NoDestructor<std::string> kDefaultApplicationName("chromium");
+ BRAVE_KEY_STORAGE_LINUX_CREATE_SERVICE_INTERNAL
#endif
std::unique_ptr<KeyStorageLinux> key_storage;