| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/renderer/localized_error.h" | 5 #include "chrome/renderer/localized_error.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 11 #include "base/utf_string_conversions.h" |
| 11 #include "base/values.h" | 12 #include "base/values.h" |
| 12 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 13 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 14 #include "net/base/escape.h" | 15 #include "net/base/escape.h" |
| 15 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| 16 #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h" |
| 17 #include "webkit/glue/webkit_glue.h" | 18 #include "webkit/glue/webkit_glue.h" |
| 18 | 19 |
| 19 using WebKit::WebURLError; | 20 using WebKit::WebURLError; |
| 20 | 21 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 L"title", l10n_util::GetStringF(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, | 256 L"title", l10n_util::GetStringF(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, |
| 256 failed_url.c_str())); | 257 failed_url.c_str())); |
| 257 error_strings->SetString(L"heading", | 258 error_strings->SetString(L"heading", |
| 258 l10n_util::GetString(IDS_HTTP_POST_WARNING_TITLE)); | 259 l10n_util::GetString(IDS_HTTP_POST_WARNING_TITLE)); |
| 259 error_strings->SetString(L"suggestionsHeading", L""); | 260 error_strings->SetString(L"suggestionsHeading", L""); |
| 260 DictionaryValue* summary = new DictionaryValue; | 261 DictionaryValue* summary = new DictionaryValue; |
| 261 summary->SetString(L"msg", | 262 summary->SetString(L"msg", |
| 262 l10n_util::GetString(IDS_ERRORPAGES_HTTP_POST_WARNING)); | 263 l10n_util::GetString(IDS_ERRORPAGES_HTTP_POST_WARNING)); |
| 263 error_strings->Set(L"summary", summary); | 264 error_strings->Set(L"summary", summary); |
| 264 } | 265 } |
| OLD | NEW |