| Index: chrome/browser/sync/internal_api/syncapi_server_connection_manager.cc
|
| diff --git a/chrome/browser/sync/internal_api/syncapi_server_connection_manager.cc b/chrome/browser/sync/internal_api/syncapi_server_connection_manager.cc
|
| index cf852c7a1f39f6084862561abc6e018fa8f26122..55b8275d83b250aef0601c37dc5e37c27857380e 100644
|
| --- a/chrome/browser/sync/internal_api/syncapi_server_connection_manager.cc
|
| +++ b/chrome/browser/sync/internal_api/syncapi_server_connection_manager.cc
|
| @@ -56,11 +56,11 @@ bool SyncAPIBridgedConnection::Init(const char* path,
|
| payload.data());
|
|
|
| // Issue the POST, blocking until it finishes.
|
| - int os_error_code = 0;
|
| + int error_code = 0;
|
| int response_code = 0;
|
| - if (!http->MakeSynchronousPost(&os_error_code, &response_code)) {
|
| - VLOG(1) << "Http POST failed, error returns: " << os_error_code;
|
| - response->server_status = os_error_code == net::ERR_ABORTED ?
|
| + if (!http->MakeSynchronousPost(&error_code, &response_code)) {
|
| + VLOG(1) << "Http POST failed, error returns: " << error_code;
|
| + response->server_status = error_code == net::ERR_ABORTED ?
|
| HttpResponse::CONNECTION_UNAVAILABLE : HttpResponse::IO_ERROR;
|
| return false;
|
| }
|
|
|