summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/localized_error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/localized_error.cc')
-rw-r--r--chrome/renderer/localized_error.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc
index 32cd8ae..d2afe31 100644
--- a/chrome/renderer/localized_error.cc
+++ b/chrome/renderer/localized_error.cc
@@ -328,12 +328,11 @@ void LocalizedError::GetStrings(const WebKit::WebURLError& error,
if (error_map)
options = *error_map;
- string16 suggestions_heading;
if (options.suggestions != SUGGEST_NONE) {
- suggestions_heading =
- l10n_util::GetStringUTF16(IDS_ERRORPAGES_SUGGESTION_HEADING);
+ error_strings->SetString(
+ "suggestionsHeading",
+ l10n_util::GetStringUTF16(IDS_ERRORPAGES_SUGGESTION_HEADING));
}
- error_strings->SetString("suggestionsHeading", suggestions_heading);
string16 failed_url(ASCIIToUTF16(error.unreachableURL.spec()));
// URLs are always LTR.
@@ -490,7 +489,6 @@ void LocalizedError::GetFormRepostStrings(const GURL& display_url,
failed_url));
error_strings->SetString(
"heading", l10n_util::GetStringUTF16(IDS_HTTP_POST_WARNING_TITLE));
- error_strings->SetString("suggestionsHeading", "");
DictionaryValue* summary = new DictionaryValue;
summary->SetString(
"msg", l10n_util::GetStringUTF16(IDS_ERRORPAGES_HTTP_POST_WARNING));