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

Unified Diff: chrome/browser/sync/internal_api/syncapi_server_connection_manager.cc

Issue 7846007: net: Rename URLRequestStatus::os_error_. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix os_error_code Created 9 years, 3 months 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698