diff options
-rw-r--r-- | chrome/browser/sync/glue/sync_backend_host.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc index d679629..435ff43 100644 --- a/chrome/browser/sync/glue/sync_backend_host.cc +++ b/chrome/browser/sync/glue/sync_backend_host.cc @@ -538,10 +538,14 @@ void SyncBackendHost::Core::OnInitializationComplete() { } void SyncBackendHost::Core::HandleInitalizationCompletedOnFrontendLoop() { + if (!host_) + return; host_->HandleInitializationCompletedOnFrontendLoop(); } void SyncBackendHost::HandleInitializationCompletedOnFrontendLoop() { + if (!frontend_) + return; frontend_->OnBackendInitialized(); } @@ -598,6 +602,8 @@ void SyncBackendHost::Core::OnStopSyncingPermanently() { } void SyncBackendHost::Core::HandleStopSyncingPermanentlyOnFrontendLoop() { + if (!host_ || !host_->frontend_) + return; host_->frontend_->OnStopSyncingPermanently(); } |