Index: chrome/common/localized_error.cc |
diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc |
index 136607a7de7a27b85b1258ff75fb89e8ef225827..3939e6f075eb6e83f89c7a28a7a737342425a229 100644 |
--- a/chrome/common/localized_error.cc |
+++ b/chrome/common/localized_error.cc |
@@ -529,6 +529,12 @@ void LocalizedError::GetStrings(const WebKit::WebURLError& error, |
error_strings->SetString("heading", |
l10n_util::GetStringUTF16(options.heading_resource_id)); |
+ std::string icon_class = (error_code == net::ERR_INTERNET_DISCONNECTED && |
+ error_domain == net::kErrorDomain) |
+ ? "icon-offline" |
+ : "icon-generic"; |
+ error_strings->SetString("iconClass", icon_class); |
+ |
base::DictionaryValue* summary = new base::DictionaryValue; |
summary->SetString("msg", |
l10n_util::GetStringUTF16(options.summary_resource_id)); |