diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 02:05:58 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 02:05:58 +0000 |
commit | 284061f83fe4d68e31d890223cd64dcfc34ac1c5 (patch) | |
tree | e48827a0e654762c907011056dc9ed312794739e /chrome | |
parent | 0dfbe224f42d7a56697297b515708037add24da1 (diff) | |
download | chromium_src-284061f83fe4d68e31d890223cd64dcfc34ac1c5.zip chromium_src-284061f83fe4d68e31d890223cd64dcfc34ac1c5.tar.gz chromium_src-284061f83fe4d68e31d890223cd64dcfc34ac1c5.tar.bz2 |
Check for NULL host_ or frontend_ in the sync_backend_host.
BUG=49120
TEST=manually tested
Review URL: http://codereview.chromium.org/2950009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-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(); } |