Skip to content

Commit

Permalink
Merge pull request #10841 from brave/sync-reset-non-active
Browse files Browse the repository at this point in the history
Reset sync chain and clear prefs right away when transaport state is not active
  • Loading branch information
darkdh authored Nov 3, 2021
2 parents 42bf18c + ee427af commit a2117f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/brave_sync/sync_service_impl_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void ResetSync(syncer::BraveSyncServiceImpl* sync_service_impl,
base::OnceClosure on_reset_done) {
if (sync_service_impl->GetTransportState() !=
syncer::SyncService::TransportState::ACTIVE) {
std::move(on_reset_done).Run();
sync_service_impl->OnSelfDeviceInfoDeleted(std::move(on_reset_done));
return;
}
syncer::DeviceInfoTracker* tracker =
Expand Down

0 comments on commit a2117f1

Please sign in to comment.