Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Unified Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 8916008: [sync] Check for null pointers before calling |FinishConfigureDataTypesOnFrontendLoop| in sbh. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 58d519e4370ad3decec62a9684ceafc8d1cdb79a..5d0ed3d7179f351031a7956ed261237c7c1c0e6c 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -706,6 +706,8 @@ void SyncBackendHost::Core::DeleteSyncDataFolder() {
void SyncBackendHost::Core::FinishConfigureDataTypes() {
DCHECK_EQ(MessageLoop::current(), sync_loop_);
+ if (!host_ || !host_->frontend_)
+ return;
host_->frontend_loop_->PostTask(FROM_HERE, base::Bind(
&SyncBackendHost::Core::FinishConfigureDataTypesOnFrontendLoop, this));
}
@@ -878,6 +880,8 @@ void SyncBackendHost::Core::HandleClearServerDataFailedOnFrontendLoop() {
}
void SyncBackendHost::Core::FinishConfigureDataTypesOnFrontendLoop() {
+ if (!host_)
+ return;
host_->FinishConfigureDataTypesOnFrontendLoop();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698