OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/logging.h" | 8 #include "base/logging.h" |
8 #include "base/string_util.h" | 9 #include "base/string_util.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "chrome/common/l10n_util.h" | |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "webkit/glue/weberror.h" | 15 #include "webkit/glue/weberror.h" |
16 #include "webkit/glue/webkit_glue.h" | 16 #include "webkit/glue/webkit_glue.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 static const char* kRedirectLoopLearnMoreUrl = | 20 static const char* kRedirectLoopLearnMoreUrl = |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 L"title", l10n_util::GetStringF(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, | 207 L"title", l10n_util::GetStringF(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, |
208 failed_url.c_str())); | 208 failed_url.c_str())); |
209 error_strings->SetString(L"heading", | 209 error_strings->SetString(L"heading", |
210 l10n_util::GetString(IDS_HTTP_POST_WARNING_TITLE)); | 210 l10n_util::GetString(IDS_HTTP_POST_WARNING_TITLE)); |
211 error_strings->SetString(L"suggestionsHeading", L""); | 211 error_strings->SetString(L"suggestionsHeading", L""); |
212 DictionaryValue* summary = new DictionaryValue; | 212 DictionaryValue* summary = new DictionaryValue; |
213 summary->SetString(L"msg", | 213 summary->SetString(L"msg", |
214 l10n_util::GetString(IDS_ERRORPAGES_HTTP_POST_WARNING)); | 214 l10n_util::GetString(IDS_ERRORPAGES_HTTP_POST_WARNING)); |
215 error_strings->Set(L"summary", summary); | 215 error_strings->Set(L"summary", summary); |
216 } | 216 } |
OLD | NEW |