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

Unified Diff: components/error_page/common/localized_error.cc

Issue 1786113002: Network errors, hide suggestions less relevant on mobile platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove surplus javascript: prefix from onclick handlers Created 4 years, 9 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 | « components/components_google_chrome_strings.grd ('k') | components/error_page_strings.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/error_page/common/localized_error.cc
diff --git a/components/error_page/common/localized_error.cc b/components/error_page/common/localized_error.cc
index 80dad579b1951d5b89e220d3d0aeed773378a2f1..c915a772e670849cd992483fb77a150b5b1867f4 100644
--- a/components/error_page/common/localized_error.cc
+++ b/components/error_page/common/localized_error.cc
@@ -669,6 +669,7 @@ void GetSuggestionsSummaryList(int error_code,
IDS_ERRORPAGES_SUGGESTION_CHECK_CONNECTION_SUMMARY, false);
}
+#if !defined(OS_ANDROID) && !defined(OS_IOS)
if ((suggestions & SUGGEST_DNS_CONFIG) &&
(suggestions & SUGGEST_FIREWALL_CONFIG) &&
(suggestions & SUGGEST_PROXY_CONFIG)) {
@@ -690,6 +691,7 @@ void GetSuggestionsSummaryList(int error_code,
DCHECK(!(suggestions & SUGGEST_FIREWALL_CONFIG));
DCHECK(!(suggestions & SUGGEST_DNS_CONFIG));
}
+#endif
if (suggestions & SUGGEST_CONTACT_ADMINISTRATOR) {
AddSingleEntryDictionaryToList(suggestions_summary_list, "summary",
@@ -773,6 +775,7 @@ void AddSuggestionsDetails(int error_code,
IDS_ERRORPAGES_SUGGESTION_CHECK_CONNECTION_BODY, false);
}
+#if !defined(OS_ANDROID) && !defined(OS_IOS)
if (suggestions & SUGGEST_DNS_CONFIG) {
AddSuggestionDetailDictionaryToList(suggestions_details,
IDS_ERRORPAGES_SUGGESTION_DNS_CONFIG_HEADER,
@@ -810,6 +813,7 @@ void AddSuggestionsDetails(int error_code,
suggest_proxy_config->SetString("proxyTitle",
l10n_util::GetStringUTF16(IDS_OPTIONS_PROXIES_CONFIGURE_BUTTON));
}
+#endif
if (suggestions & SUGGEST_CONTACT_ADMINISTRATOR_STANDALONE &&
error_code == net::ERR_BLOCKED_BY_ADMINISTRATOR) {
« no previous file with comments | « components/components_google_chrome_strings.grd ('k') | components/error_page_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698