| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/error_page/common/localized_error.h" | 5 #include "components/error_page/common/localized_error.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "net/base/net_errors.h" | 30 #include "net/base/net_errors.h" |
| 31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
| 32 #include "ui/base/webui/web_ui_util.h" | 32 #include "ui/base/webui/web_ui_util.h" |
| 33 #include "url/origin.h" | 33 #include "url/origin.h" |
| 34 | 34 |
| 35 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
| 36 #include "base/win/windows_version.h" | 36 #include "base/win/windows_version.h" |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 #if defined(OS_ANDROID) | 39 #if defined(OS_ANDROID) |
| 40 #include "components/offline_pages/offline_page_feature.h" | 40 #include "components/offline_pages/core/offline_page_feature.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 namespace error_page { | 43 namespace error_page { |
| 44 | 44 |
| 45 namespace { | 45 namespace { |
| 46 | 46 |
| 47 static const char kRedirectLoopLearnMoreUrl[] = | 47 static const char kRedirectLoopLearnMoreUrl[] = |
| 48 "https://support.google.com/chrome?p=rl_error"; | 48 "https://support.google.com/chrome?p=rl_error"; |
| 49 static const char kWeakDHKeyLearnMoreUrl[] = | 49 static const char kWeakDHKeyLearnMoreUrl[] = |
| 50 "https://support.google.com/chrome?p=dh_error"; | 50 "https://support.google.com/chrome?p=dh_error"; |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 | 1052 |
| 1053 bool LocalizedError::HasStrings(const std::string& error_domain, | 1053 bool LocalizedError::HasStrings(const std::string& error_domain, |
| 1054 int error_code) { | 1054 int error_code) { |
| 1055 // Whether or not the there are strings for an error does not depend on | 1055 // Whether or not the there are strings for an error does not depend on |
| 1056 // whether or not the page was be generated by a POST, so just claim it was | 1056 // whether or not the page was be generated by a POST, so just claim it was |
| 1057 // not. | 1057 // not. |
| 1058 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; | 1058 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 } // namespace error_page | 1061 } // namespace error_page |
| OLD | NEW |