From 0fb869ff8b198cea2a239098a1d5fe73f8c5d9ff Mon Sep 17 00:00:00 2001 From: "mmenke@chromium.org" Date: Thu, 16 Dec 2010 16:02:08 +0000 Subject: Add error text for ERR_DETAILS_CACHE_READ_FAILURE and ERR_NETWORK_IO_SUSPENDED. BUG=66728,63874 TEST=manual Review URL: http://codereview.chromium.org/5826003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69410 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/generated_resources.grd | 35 +++++++++++++++++++++++++++++++++-- chrome/renderer/localized_error.cc | 14 ++++++++++++++ 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd index 432e5ad..312c2cc 100644 --- a/chrome/app/generated_resources.grd +++ b/chrome/app/generated_resources.grd @@ -5977,6 +5977,12 @@ Keep your key file in a safe place. You will need it to create new versions of y Unable to connect to the Internet + + Cache read error + + + Network access suspended + This webpage is not found @@ -6062,6 +6068,24 @@ Keep your key file in a safe place. You will need it to create new versions of y + + To speed up webpages, + <span jscontent="productName"></span>Google Chrome + temporarily saves downloaded files to disk. When + <span jscontent="productName"></span>Google Chrome + is not shut down properly, these files can become corrupted, resulting + in this error. Reloading the page should resolve this issue, and + shutting down properly should prevent it from happening in the future. + <br /><br /> + If the problem persists, try clearing the cache. In some cases, this + can also be a symptom of hardware starting to fail. + + + Unable to load the webpage because your computer entered sleep or + hibernate mode. When this happens, network connections are shut + down and new network requests fail. Reloading the page should + resolve this. + No webpage was found for the web address: <strong jscontent="failedUrl"></strong> @@ -6076,8 +6100,9 @@ Keep your key file in a safe place. You will need it to create new versions of y means that the server is trying to set up a secure connection but, due to a disastrous misconfiguration, the connection wouldn't be secure at all! <br /><br /> In this case the - server needs to be fixed. Chrome won't use insecure connections in order - to protect your privacy. + server needs to be fixed. + <span jscontent="productName"></span>Google Chrome + won't use insecure connections in order to protect your privacy. @@ -6126,6 +6151,12 @@ Keep your key file in a safe place. You will need it to create new versions of y The Internet connection has been lost. + + Error reading data from cache. + + + Network IO suspended. + The file or directory could not be found. diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc index 3fe8eed..0f8a45e 100644 --- a/chrome/renderer/localized_error.cc +++ b/chrome/renderer/localized_error.cc @@ -114,6 +114,20 @@ const LocalizedErrorMap net_error_options[] = { IDS_ERRORPAGES_DETAILS_FILE_NOT_FOUND, SUGGEST_NONE, }, + {net::ERR_CACHE_READ_FAILURE, + IDS_ERRORPAGES_TITLE_LOAD_FAILED, + IDS_ERRORPAGES_HEADING_CACHE_READ_FAILURE, + IDS_ERRORPAGES_SUMMARY_CACHE_READ_FAILURE, + IDS_ERRORPAGES_DETAILS_CACHE_READ_FAILURE, + SUGGEST_RELOAD, + }, + {net::ERR_NETWORK_IO_SUSPENDED, + IDS_ERRORPAGES_TITLE_LOAD_FAILED, + IDS_ERRORPAGES_HEADING_NETWORK_IO_SUSPENDED, + IDS_ERRORPAGES_SUMMARY_NETWORK_IO_SUSPENDED, + IDS_ERRORPAGES_DETAILS_NETWORK_IO_SUSPENDED, + SUGGEST_RELOAD, + }, {net::ERR_TOO_MANY_REDIRECTS, IDS_ERRORPAGES_TITLE_LOAD_FAILED, IDS_ERRORPAGES_HEADING_TOO_MANY_REDIRECTS, -- cgit v1.1