Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: sync/engine/net/server_connection_manager.cc

Issue 1553433002: [Sync] Sync should run canary cycle after any network related error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust initial delay for CONNECTION_UNAVAILABLE error. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/engine/net/server_connection_manager.cc
diff --git a/sync/engine/net/server_connection_manager.cc b/sync/engine/net/server_connection_manager.cc
index 83fbafe24e8c8d5fe7572b2cd1257b37c3b43a96..a5be7a51c7d0e6fb9c1d7e7778dfbfb662fee944 100644
--- a/sync/engine/net/server_connection_manager.cc
+++ b/sync/engine/net/server_connection_manager.cc
@@ -55,23 +55,6 @@ const char* HttpResponse::GetServerConnectionCodeString(
#undef ENUM_CASE
-// TODO(clamy): check if all errors are in the right category.
-HttpResponse::ServerConnectionCode
-HttpResponse::ServerConnectionCodeFromNetError(int error_code) {
- switch (error_code) {
- case net::ERR_ABORTED:
- case net::ERR_SOCKET_NOT_CONNECTED:
- case net::ERR_NETWORK_CHANGED:
- case net::ERR_CONNECTION_FAILED:
- case net::ERR_NAME_NOT_RESOLVED:
- case net::ERR_INTERNET_DISCONNECTED:
- case net::ERR_NETWORK_ACCESS_DENIED:
- case net::ERR_NETWORK_IO_SUSPENDED:
- return CONNECTION_UNAVAILABLE;
- }
- return IO_ERROR;
-}
-
ServerConnectionManager::Connection::Connection(
ServerConnectionManager* scm) : scm_(scm) {
}

Powered by Google App Engine
This is Rietveld 408576698