Chromium Code Reviews| Index: chrome/common/localized_error.cc |
| diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc |
| index 136607a7de7a27b85b1258ff75fb89e8ef225827..50f76b4da17eef1e8f2ac15272dba69b23170b76 100644 |
| --- a/chrome/common/localized_error.cc |
| +++ b/chrome/common/localized_error.cc |
| @@ -529,6 +529,9 @@ void LocalizedError::GetStrings(const WebKit::WebURLError& error, |
| error_strings->SetString("heading", |
| l10n_util::GetStringUTF16(options.heading_resource_id)); |
| + error_strings->SetBoolean("isOffline", |
| + error_code == net::ERR_INTERNET_DISCONNECTED); |
|
mmenke
2013/07/24 14:54:17
Rather than using a bool, suggest a string, since
newt (away)
2013/07/24 17:30:52
Shouldn't error_code == net::ERR_INTERNET_DISCONNE
mmenke
2013/07/24 17:51:04
In practice, that's currently the case. However,
|
| + |
| base::DictionaryValue* summary = new base::DictionaryValue; |
| summary->SetString("msg", |
| l10n_util::GetStringUTF16(options.summary_resource_id)); |