summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/app/generated_resources.grd3
-rw-r--r--chrome/renderer/localized_error.cc28
-rw-r--r--chrome/renderer/resources/error_no_details.html3
-rw-r--r--chrome/renderer/resources/neterror.html3
4 files changed, 4 insertions, 33 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index bacb00d..9ff2270 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -2170,9 +2170,6 @@ each locale. -->
<message name="IDS_ERRORPAGES_SUGGESTION_RELOAD" desc="Suggest reloading to the user">
&lt;a jsvalues="href:reloadUrl"&gt;Reload&lt;/a&gt; this web page later.
</message>
- <message name="IDS_ERRORPAGES_SUGGESTION_CACHE" desc="String suggesting to try using the google cache.">
- View a &lt;a jsvalues="href:cacheUrl"&gt;cached copy of the web page from Google&lt;/a&gt;
- </message>
<message name="IDS_ERRORPAGES_SUGGESTION_HOMEPAGE" desc="String suggesting to try just the hostname of the site.">
Go to the homepage of the site:
</message>
diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc
index 366734f..78328cb4 100644
--- a/chrome/renderer/localized_error.cc
+++ b/chrome/renderer/localized_error.cc
@@ -17,19 +17,10 @@
namespace {
-// Helper method for generating the google cache lookup url.
-const std::wstring ConstructGoogleCacheUrl(const std::wstring& url) {
- // TODO(tc): use locale based google domain
- std::wstring cache_url(L"http://www.google.com/search?q=cache:");
- cache_url.append(EscapeQueryParamValueUTF8(url));
- return cache_url;
-}
-
enum NAV_SUGGESTIONS {
SUGGEST_NONE = 0,
SUGGEST_RELOAD = 1 << 0,
- SUGGEST_CACHE = 1 << 1,
- SUGGEST_HOSTNAME = 1 << 2,
+ SUGGEST_HOSTNAME = 1 << 1,
};
struct WebErrorNetErrorMap {
@@ -47,21 +38,21 @@ WebErrorNetErrorMap net_error_options[] = {
IDS_ERRORPAGES_HEADING_NOT_AVAILABLE,
IDS_ERRORPAGES_SUMMARY_NOT_AVAILABLE,
IDS_ERRORPAGES_DETAILS_TIMED_OUT,
- SUGGEST_RELOAD | SUGGEST_CACHE,
+ 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,
- SUGGEST_RELOAD | SUGGEST_CACHE,
+ SUGGEST_RELOAD,
},
{net::ERR_NAME_NOT_RESOLVED,
IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
IDS_ERRORPAGES_HEADING_NOT_AVAILABLE,
IDS_ERRORPAGES_SUMMARY_NOT_AVAILABLE,
IDS_ERRORPAGES_DETAILS_NAME_NOT_RESOLVED,
- SUGGEST_RELOAD | SUGGEST_CACHE,
+ SUGGEST_RELOAD,
},
{net::ERR_INTERNET_DISCONNECTED,
IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
@@ -155,15 +146,6 @@ void GetLocalizedErrorValues(const WebError& error,
error_strings->Set(L"suggestionsReload", suggest_reload);
}
- if (options.suggestions & SUGGEST_CACHE) {
- DictionaryValue* suggest_cache = new DictionaryValue;
- suggest_cache->SetString(L"msg",
- l10n_util::GetString(IDS_ERRORPAGES_SUGGESTION_CACHE));
- suggest_cache->SetString(L"cacheUrl",
- ConstructGoogleCacheUrl(failed_url).c_str());
- error_strings->Set(L"suggestionsCache", suggest_cache);
- }
-
if (options.suggestions & SUGGEST_HOSTNAME) {
// Only show the "Go to hostname" suggestion if the failed_url has a path.
const GURL& failed_url = error.GetFailedURL();
@@ -201,5 +183,3 @@ void GetFormRepostErrorValues(const GURL& display_url,
l10n_util::GetString(IDS_ERRORPAGES_HTTP_POST_WARNING));
error_strings->Set(L"summary", summary);
}
-
-
diff --git a/chrome/renderer/resources/error_no_details.html b/chrome/renderer/resources/error_no_details.html
index 7264142a..c7d68ae 100644
--- a/chrome/renderer/resources/error_no_details.html
+++ b/chrome/renderer/resources/error_no_details.html
@@ -60,9 +60,6 @@ a:visited {
<li jsselect="suggestionsReload">
<span jseval="this.innerHTML = $this.msg;"></span>
</li>
- <li jsselect="suggestionsCache">
- <span jseval="this.innerHTML = $this.msg;"></span>
- </li>
<li jsselect="suggestionsHomepage">
<span jscontent="suggestionsHomepageMsg"></span>
<a jscontent="hostName" jsvalues="href:homePage"></a>
diff --git a/chrome/renderer/resources/neterror.html b/chrome/renderer/resources/neterror.html
index bf234f0..988b612 100644
--- a/chrome/renderer/resources/neterror.html
+++ b/chrome/renderer/resources/neterror.html
@@ -80,9 +80,6 @@ function toggleDiv(id) {
<li jsselect="suggestionsReload">
<span jseval="this.innerHTML = $this.msg;"></span>
</li>
- <li jsselect="suggestionsCache">
- <span jseval="this.innerHTML = $this.msg;"></span>
- </li>
<li jsselect="suggestionsHomepage">
<span jscontent="suggestionsHomepageMsg"></span>
<a jscontent="hostName" jsvalues="href:homePage"></a>