Index: sync/internal_api/syncapi_server_connection_manager.cc |
diff --git a/sync/internal_api/syncapi_server_connection_manager.cc b/sync/internal_api/syncapi_server_connection_manager.cc |
index 16646ec7f4df4ee93cbb979c7d8b371b072422e8..33bfba26fb5b78974a8e8316b4fbcb56c79bf025 100644 |
--- a/sync/internal_api/syncapi_server_connection_manager.cc |
+++ b/sync/internal_api/syncapi_server_connection_manager.cc |
@@ -53,9 +53,9 @@ bool SyncAPIBridgedConnection::Init(const char* path, |
int error_code = 0; |
int response_code = 0; |
if (!http->MakeSynchronousPost(&error_code, &response_code)) { |
+ DCHECK(error_code != net::OK); |
Nicolas Zea
2015/12/30 21:34:34
DCHECK_NE?
pavely
2016/01/04 23:31:04
Done.
|
DVLOG(1) << "Http POST failed, error returns: " << error_code; |
- response->server_status = HttpResponse::ServerConnectionCodeFromNetError( |
- error_code); |
+ response->server_status = HttpResponse::CONNECTION_UNAVAILABLE; |
return false; |
} |