Skip to content

Commit 104b31a

Browse files
author
win32ss
committed
(#1643) Crash when using --disable-encryption is fixed
1 parent 746093a commit 104b31a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/os_crypt/sync/os_crypt_win.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ void OSCryptImpl::RegisterLocalPrefs(PrefRegistrySimple* registry) {
256256

257257
bool OSCryptImpl::Init(PrefService* local_state) {
258258
// Try to pull the key from the local state.
259+
if (base::CommandLine::ForCurrentProcess()->HasSwitch("disable-encryption")) {
260+
use_legacy_ = true;
261+
}
259262
switch (InitWithExistingKey(local_state)) {
260263
case OSCrypt::kSuccess:
261264
return true;

0 commit comments

Comments
 (0)