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

Unified Diff: chrome/common/localized_error.cc

Issue 601523003: Network error interstitial bug fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix blue button flash when page loads Created 6 years, 3 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 | « no previous file | chrome/renderer/resources/neterror.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/localized_error.cc
diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc
index 3a630c5835fe91fbfc4e19fdba843c30b199e4b7..bfd0b5f30b11f2b73efcaf83bd456b3edf1b60ce 100644
--- a/chrome/common/localized_error.cc
+++ b/chrome/common/localized_error.cc
@@ -559,7 +559,8 @@ void LocalizedError::GetStrings(int error_code,
base::DictionaryValue* summary = new base::DictionaryValue;
// For offline show a summary message underneath the heading.
- if (error_code == net::ERR_INTERNET_DISCONNECTED) {
+ if (error_code == net::ERR_INTERNET_DISCONNECTED ||
+ error_code == chrome_common_net::DNS_PROBE_FINISHED_NO_INTERNET) {
error_strings->SetString("primaryParagraph",
l10n_util::GetStringUTF16(options.summary_resource_id));
} else {
« no previous file with comments | « no previous file | chrome/renderer/resources/neterror.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698