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 c96fee9216173fd14c42c8874f2bbbe5b7415e50..315603c1c314bce5984f27675ea8edafc24ad7f4 100644 |
--- a/chrome/browser/sync/glue/sync_backend_host.cc |
+++ b/chrome/browser/sync/glue/sync_backend_host.cc |
@@ -460,6 +460,7 @@ void SyncBackendHost::Initialize( |
} |
void SyncBackendHost::UpdateCredentials(const SyncCredentials& credentials) { |
+ DCHECK(sync_thread_.IsRunning()); |
sync_thread_.message_loop()->PostTask(FROM_HERE, |
base::Bind(&SyncBackendHost::Core::DoUpdateCredentials, core_.get(), |
credentials)); |
@@ -487,6 +488,7 @@ void SyncBackendHost::StartSyncingWithServer() { |
void SyncBackendHost::SetEncryptionPassphrase(const std::string& passphrase, |
bool is_explicit) { |
+ DCHECK(sync_thread_.IsRunning()); |
if (!IsNigoriEnabled()) { |
NOTREACHED() << "SetEncryptionPassphrase must never be called when nigori" |
" is disabled."; |