diff options
Diffstat (limited to 'chrome/browser/sync/glue/sync_backend_host.cc')
-rw-r--r-- | chrome/browser/sync/glue/sync_backend_host.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc index 6d16dc30..31626cb 100644 --- a/chrome/browser/sync/glue/sync_backend_host.cc +++ b/chrome/browser/sync/glue/sync_backend_host.cc @@ -60,6 +60,7 @@ void SyncBackendHost::Initialize( // when a new type is synced as the worker may already exist and you just // need to update routing_info_. registrar_.workers[GROUP_UI] = new UIModelWorker(frontend_loop_); + registrar_.workers[GROUP_PASSIVE] = new ModelSafeWorker(); // Any datatypes that we want the syncer to pull down must // be in the routing_info map. We set them to group passive, meaning that @@ -121,7 +122,9 @@ void SyncBackendHost::Shutdown(bool sync_disabled) { registrar_.routing_info.clear(); registrar_.workers[GROUP_UI] = NULL; + registrar_.workers[GROUP_PASSIVE] = NULL; registrar_.workers.erase(GROUP_UI); + registrar_.workers.erase(GROUP_PASSIVE); frontend_ = NULL; core_ = NULL; // Releases reference to core_. } |