From b5f5c45835ae1820a89180ee528e79da483ebbba Mon Sep 17 00:00:00 2001 From: "rlarocque@chromium.org" Date: Tue, 26 Feb 2013 02:55:20 +0000 Subject: Remove SyncSessionJob::DidReachServer() flag This flag was added in r140885 to address issue 131414. The problem was that SyncSessionJobs that did not contact the server would succeed and attempt to reset the backoff interval. The commits r149052 and r143088 removed the job types that do not attempt to contact the server, so we no longer need to worry about them accidentally distrupting backoff. BUG=175024 Review URL: https://chromiumcodereview.appspot.com/12320104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184566 0039d316-1c4b-4281-b951-d872f2087c98 --- sync/sessions/sync_session.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sync/sessions/sync_session.cc') diff --git a/sync/sessions/sync_session.cc b/sync/sessions/sync_session.cc index 11c95eb..b7ff433 100644 --- a/sync/sessions/sync_session.cc +++ b/sync/sessions/sync_session.cc @@ -75,12 +75,5 @@ void SyncSession::SendEventNotification(SyncEngineEvent::EventCause cause) { context()->NotifyListeners(event); } -bool SyncSession::DidReachServer() const { - const ModelNeutralState& state = status_controller_->model_neutral_state(); - return state.last_get_key_result >= FIRST_SERVER_RETURN_VALUE || - state.last_download_updates_result >= FIRST_SERVER_RETURN_VALUE || - state.commit_result >= FIRST_SERVER_RETURN_VALUE; -} - } // namespace sessions } // namespace syncer -- cgit v1.1