| Index: chrome/browser/sync/glue/sync_backend_host_core.cc
|
| diff --git a/chrome/browser/sync/glue/sync_backend_host_core.cc b/chrome/browser/sync/glue/sync_backend_host_core.cc
|
| index 2a78040131e0e7894375a1f11fa40c2e0285eb66..1e3abaff88b3b4510946fe4b686d0680f30aafaa 100644
|
| --- a/chrome/browser/sync/glue/sync_backend_host_core.cc
|
| +++ b/chrome/browser/sync/glue/sync_backend_host_core.cc
|
| @@ -9,7 +9,6 @@
|
| #include "chrome/browser/sync/glue/device_info.h"
|
| #include "chrome/browser/sync/glue/invalidation_adapter.h"
|
| #include "chrome/browser/sync/glue/sync_backend_registrar.h"
|
| -#include "chrome/browser/sync/glue/synced_device_tracker.h"
|
| #include "chrome/common/chrome_version_info.h"
|
| #include "components/invalidation/invalidation_util.h"
|
| #include "components/invalidation/object_id_invalidation_map.h"
|
| @@ -509,25 +508,6 @@ void SyncBackendHostCore::DoInitialProcessControlTypes() {
|
| return;
|
| }
|
|
|
| - // Initialize device info. This is asynchronous on some platforms, so we
|
| - // provide a callback for when it finishes.
|
| - synced_device_tracker_.reset(
|
| - new SyncedDeviceTracker(sync_manager_->GetUserShare(),
|
| - sync_manager_->cache_guid()));
|
| - synced_device_tracker_->InitLocalDeviceInfo(
|
| - signin_scoped_device_id_,
|
| - base::Bind(&SyncBackendHostCore::DoFinishInitialProcessControlTypes,
|
| - weak_ptr_factory_.GetWeakPtr()));
|
| -}
|
| -
|
| -void SyncBackendHostCore::DoFinishInitialProcessControlTypes() {
|
| - DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
|
| -
|
| - registrar_->ActivateDataType(syncer::DEVICE_INFO,
|
| - syncer::GROUP_PASSIVE,
|
| - synced_device_tracker_.get(),
|
| - sync_manager_->GetUserShare());
|
| -
|
| host_.Call(FROM_HERE,
|
| &SyncBackendHostImpl::HandleInitializationSuccessOnFrontendLoop,
|
| js_backend_,
|
| @@ -575,10 +555,6 @@ void SyncBackendHostCore::ShutdownOnUIThread() {
|
| void SyncBackendHostCore::DoShutdown(syncer::ShutdownReason reason) {
|
| DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
|
|
|
| - // It's safe to do this even if the type was never activated.
|
| - registrar_->DeactivateDataType(syncer::DEVICE_INFO);
|
| - synced_device_tracker_.reset();
|
| -
|
| DoDestroySyncManager(reason);
|
|
|
| registrar_ = NULL;
|
|
|