summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/engine/net/server_connection_manager.h
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-17 05:22:26 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-17 05:22:26 +0000
commit79bb11c5d1a3b1d8d3b6f868ee58f606f9783602 (patch)
treecd866bae1a791df7bff887cc2b354c6528d0d23e /chrome/browser/sync/engine/net/server_connection_manager.h
parent5b9652b3ce3872c76a824e0c87c6608b03257ae8 (diff)
downloadchromium_src-79bb11c5d1a3b1d8d3b6f868ee58f606f9783602.zip
chromium_src-79bb11c5d1a3b1d8d3b6f868ee58f606f9783602.tar.gz
chromium_src-79bb11c5d1a3b1d8d3b6f868ee58f606f9783602.tar.bz2
sync: remove IncrementErrorCount from ServerConnectionManager.
It's not used for a real purpose anymore, and it was causing the SCM to have multiple active_connection_ objects in certain cases, which is bad. This is mostly covered by SyncAPIServerConnectionManagerTest BUG=101639 TEST=On a debug build, no DCHECKs if the server is unreachable on sync startup. Review URL: http://codereview.chromium.org/8590005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110443 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/engine/net/server_connection_manager.h')
-rw-r--r--chrome/browser/sync/engine/net/server_connection_manager.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/chrome/browser/sync/engine/net/server_connection_manager.h b/chrome/browser/sync/engine/net/server_connection_manager.h
index ae53a37..748c3f7 100644
--- a/chrome/browser/sync/engine/net/server_connection_manager.h
+++ b/chrome/browser/sync/engine/net/server_connection_manager.h
@@ -31,10 +31,6 @@ namespace browser_sync {
class ClientToServerMessage;
-// How many connection errors are accepted before network handles are closed
-// and reopened.
-static const int32 kMaxConnectionErrorsBeforeReset = 10;
-
static const int32 kUnsetResponseCode = -1;
static const int32 kUnsetContentLength = -1;
static const int32 kUnsetPayloadLength = -1;
@@ -299,10 +295,6 @@ class ServerConnectionManager {
return get_time_path_;
}
- // Called wherever a failure should be taken as an indication that we may
- // be experiencing connection difficulties.
- virtual bool IncrementErrorCount();
-
// NOTE: Tests rely on this protected function being virtual.
//
// Internal PostBuffer base function.
@@ -345,8 +337,6 @@ class ServerConnectionManager {
// The previous auth token that is invalid now.
std::string previously_invalidated_token;
- int error_count_; // Tracks the number of connection errors.
-
ObserverList<ServerConnectionEventListener> listeners_;
HttpResponse::ServerConnectionCode server_status_;