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

Unified Diff: chrome/renderer/render_view.cc

Issue 159904: Add a new net::Error value: ERR_CONNECTION_TIMED_OUT. (Closed)
Patch Set: Use MapConnectError() for asynchronous case too. Created 11 years, 4 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
« no previous file with comments | « chrome/renderer/localized_error.cc ('k') | net/base/net_error_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index c1ace500b83781ccd0dba258c8d6460ebc40ae13..013106216f934e2977a8259fce02a78c8d2b59e6 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -2921,14 +2921,13 @@ bool RenderView::MaybeLoadAlternateErrorPage(WebFrame* frame,
return false;
// Use the alternate error page service if this is a DNS failure or
- // connection failure. ERR_CONNECTION_FAILED can be dropped once we no
- // longer use winhttp.
+ // connection failure.
int ec = error.reason;
if (ec != net::ERR_NAME_NOT_RESOLVED &&
ec != net::ERR_CONNECTION_FAILED &&
ec != net::ERR_CONNECTION_REFUSED &&
ec != net::ERR_ADDRESS_UNREACHABLE &&
- ec != net::ERR_TIMED_OUT)
+ ec != net::ERR_CONNECTION_TIMED_OUT)
return false;
const GURL& error_page_url = GetAlternateErrorPageURL(error.unreachableURL,
« no previous file with comments | « chrome/renderer/localized_error.cc ('k') | net/base/net_error_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698