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

21 lines
1.1 KiB
Diff

diff --git a/components/os_crypt/sync/key_storage_kwallet.cc b/components/os_crypt/sync/key_storage_kwallet.cc
index b3ec51a1cd22be2e236bcc9f9429c3f0b9a13ca6..d73a588f8d196f6eb6fba08b230b20cd2f9ad887 100644
--- a/components/os_crypt/sync/key_storage_kwallet.cc
+++ b/components/os_crypt/sync/key_storage_kwallet.cc
@@ -127,6 +127,7 @@ std::optional<std::string> KeyStorageKWallet::GetKeyImpl() {
// Get the existing password.
std::optional<std::string> password;
+ BRAVE_KEY_STORAGE_KWALLET_GET_KEY_IMPL
if (kwallet_dbus_->ReadPassword(handle_, KeyStorageLinux::kFolderName,
KeyStorageLinux::kKey, app_name_,
&password) != KWalletDBus::SUCCESS) {
@@ -143,6 +144,7 @@ std::optional<std::string> KeyStorageKWallet::GetKeyImpl() {
bool KeyStorageKWallet::InitFolder() {
bool has_folder = false;
KWalletDBus::Error error = kwallet_dbus_->HasFolder(
+ BRAVE_KEY_STORAGE_KWALLET_INIT_FOLDER
handle_, KeyStorageLinux::kFolderName, app_name_, &has_folder);
if (error) {
return false;