Skip to content

Commit

Permalink
Workaround for empty passphrase - will be reverted after UI PR
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyBarabash committed Nov 25, 2019
1 parent 7a4d18c commit a3708ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/brave_sync/brave_profile_sync_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,11 @@ void BraveProfileSyncServiceImpl::GetSettingsAndDevices(
void BraveProfileSyncServiceImpl::GetSyncWords() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
Uint8Array seed = Uint8ArrayFromString(brave_sync_prefs_->GetSeed());
NotifyHaveSyncWords(crypto::PassphraseFromBytes32(seed));
if (!seed.empty()) {
NotifyHaveSyncWords(crypto::PassphraseFromBytes32(seed));
} else {
NotifyHaveSyncWords("TEST DEBUG");
}
}

std::string BraveProfileSyncServiceImpl::GetSeed() {
Expand Down

0 comments on commit a3708ba

Please sign in to comment.