summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/localized_error.cc
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 15:02:52 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 15:02:52 +0000
commit88b5a92847caf1a3b90d6b54ea400651be80b21e (patch)
treef66dea64e9ff4d0ae6aa6e219f99eb07177ff9bb /chrome/renderer/localized_error.cc
parent3f474580142729e04a288e5c652907c8bdad59ff (diff)
downloadchromium_src-88b5a92847caf1a3b90d6b54ea400651be80b21e.zip
chromium_src-88b5a92847caf1a3b90d6b54ea400651be80b21e.tar.gz
chromium_src-88b5a92847caf1a3b90d6b54ea400651be80b21e.tar.bz2
Adds basic error text for all errors with a 1% or greater
frequency on the dev channel build. The text for most of the errors isn't terribly useful, but the default "Unkown Error" is a little embarrassing. Also nice to get the error descriptions internationalized. BUG=55726 TEST=none Review URL: http://codereview.chromium.org/6392030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/localized_error.cc')
-rw-r--r--chrome/renderer/localized_error.cc37
1 files changed, 36 insertions, 1 deletions
diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc
index 7350b34..9ccc11b 100644
--- a/chrome/renderer/localized_error.cc
+++ b/chrome/renderer/localized_error.cc
@@ -65,11 +65,32 @@ const LocalizedErrorMap net_error_options[] = {
IDS_ERRORPAGES_DETAILS_TIMED_OUT,
SUGGEST_RELOAD,
},
+ {net::ERR_CONNECTION_CLOSED,
+ IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
+ IDS_ERRORPAGES_HEADING_NOT_AVAILABLE,
+ IDS_ERRORPAGES_SUMMARY_NOT_AVAILABLE,
+ IDS_ERRORPAGES_DETAILS_CONNECTION_CLOSED,
+ SUGGEST_RELOAD,
+ },
+ {net::ERR_CONNECTION_RESET,
+ IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
+ IDS_ERRORPAGES_HEADING_NOT_AVAILABLE,
+ IDS_ERRORPAGES_SUMMARY_NOT_AVAILABLE,
+ IDS_ERRORPAGES_DETAILS_CONNECTION_RESET,
+ SUGGEST_RELOAD,
+ },
+ {net::ERR_CONNECTION_REFUSED,
+ IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
+ IDS_ERRORPAGES_HEADING_NOT_AVAILABLE,
+ IDS_ERRORPAGES_SUMMARY_NOT_AVAILABLE,
+ IDS_ERRORPAGES_DETAILS_CONNECTION_REFUSED,
+ SUGGEST_RELOAD,
+ },
{net::ERR_CONNECTION_FAILED,
IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
IDS_ERRORPAGES_HEADING_NOT_AVAILABLE,
IDS_ERRORPAGES_SUMMARY_NOT_AVAILABLE,
- IDS_ERRORPAGES_DETAILS_CONNECT_FAILED,
+ IDS_ERRORPAGES_DETAILS_CONNECTION_FAILED,
SUGGEST_RELOAD,
},
{net::ERR_NAME_NOT_RESOLVED,
@@ -114,6 +135,13 @@ const LocalizedErrorMap net_error_options[] = {
IDS_ERRORPAGES_DETAILS_FILE_NOT_FOUND,
SUGGEST_NONE,
},
+ {net::ERR_CACHE_MISS,
+ IDS_ERRORPAGES_TITLE_LOAD_FAILED,
+ IDS_ERRORPAGES_HEADING_CACHE_MISS,
+ IDS_ERRORPAGES_SUMMARY_CACHE_MISS,
+ IDS_ERRORPAGES_DETAILS_CACHE_MISS,
+ SUGGEST_RELOAD,
+ },
{net::ERR_CACHE_READ_FAILURE,
IDS_ERRORPAGES_TITLE_LOAD_FAILED,
IDS_ERRORPAGES_HEADING_CACHE_READ_FAILURE,
@@ -135,6 +163,13 @@ const LocalizedErrorMap net_error_options[] = {
IDS_ERRORPAGES_DETAILS_TOO_MANY_REDIRECTS,
SUGGEST_RELOAD | SUGGEST_LEARNMORE,
},
+ {net::ERR_EMPTY_RESPONSE,
+ IDS_ERRORPAGES_TITLE_LOAD_FAILED,
+ IDS_ERRORPAGES_HEADING_EMPTY_RESPONSE,
+ IDS_ERRORPAGES_SUMMARY_EMPTY_RESPONSE,
+ IDS_ERRORPAGES_DETAILS_EMPTY_RESPONSE,
+ SUGGEST_RELOAD,
+ },
{net::ERR_SSL_PROTOCOL_ERROR,
IDS_ERRORPAGES_TITLE_LOAD_FAILED,
IDS_ERRORPAGES_HEADING_SSL_PROTOCOL_ERROR,