diff options
Diffstat (limited to 'chrome/browser/sync/internal_api/all_status.cc')
-rw-r--r-- | chrome/browser/sync/internal_api/all_status.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/chrome/browser/sync/internal_api/all_status.cc b/chrome/browser/sync/internal_api/all_status.cc index 6f0edb7..23c1ecb 100644 --- a/chrome/browser/sync/internal_api/all_status.cc +++ b/chrome/browser/sync/internal_api/all_status.cc @@ -16,7 +16,6 @@ namespace browser_sync { AllStatus::AllStatus() { - status_.summary = sync_api::SyncManager::Status::OFFLINE; status_.initial_sync_ended = true; status_.notifications_enabled = false; status_.cryptographer_ready = false; @@ -96,27 +95,6 @@ sync_api::SyncManager::Status AllStatus::CalcSyncing( return status; } -void AllStatus::CalcStatusChanges() { - const bool unsynced_changes = status_.unsynced_count > 0; - // TODO(rlarocque): Hard-coding online to true is a hack that patches over - // crbug.com/112229, and limits the fallout from some ServerConnectionManager - // changes. We will be making more drastic changes to the summary value in - // the near future. See crbug.com/98346. - const bool online = true; - if (online) { - if (status_.syncing) - status_.summary = sync_api::SyncManager::Status::SYNCING; - else - status_.summary = sync_api::SyncManager::Status::READY; - } else if (!status_.initial_sync_ended) { - status_.summary = sync_api::SyncManager::Status::OFFLINE_UNUSABLE; - } else if (unsynced_changes) { - status_.summary = sync_api::SyncManager::Status::OFFLINE_UNSYNCED; - } else { - status_.summary = sync_api::SyncManager::Status::OFFLINE; - } -} - void AllStatus::OnSyncEngineEvent(const SyncEngineEvent& event) { ScopedStatusLock lock(this); switch (event.what_happened) { @@ -181,7 +159,6 @@ ScopedStatusLock::ScopedStatusLock(AllStatus* allstatus) } ScopedStatusLock::~ScopedStatusLock() { - allstatus_->CalcStatusChanges(); allstatus_->mutex_.Release(); } |