blob: e9386bc7eedc1c05745b492f4463021e0f6eaaab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- components/password_manager/core/browser/sync/password_sync_bridge.cc.orig 2022-09-24 10:57:32 UTC
+++ components/password_manager/core/browser/sync/password_sync_bridge.cc
@@ -177,7 +177,7 @@ bool ShouldRecoverPasswordsDuringMerge() {
// Delete the local undecryptable copy when this is MacOS only.
#if BUILDFLAG(IS_MAC)
return true;
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
return base::FeatureList::IsEnabled(
features::kSyncUndecryptablePasswordsLinux);
#else
@@ -186,7 +186,7 @@ bool ShouldRecoverPasswordsDuringMerge() {
}
bool ShouldCleanSyncMetadataDuringStartupWhenDecryptionFails() {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
return ShouldRecoverPasswordsDuringMerge() &&
base::FeatureList::IsEnabled(
features::kForceInitialSyncWhenDecryptionFails);
|