| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_ADMINISTRATOR, | 280 IDS_ERRORPAGES_SUMMARY_BLOCKED_BY_ADMINISTRATOR, |
| 281 SUGGEST_CONTACT_ADMINISTRATOR, | 281 SUGGEST_CONTACT_ADMINISTRATOR, |
| 282 SHOW_NO_BUTTONS, | 282 SHOW_NO_BUTTONS, |
| 283 }, | 283 }, |
| 284 {net::ERR_BLOCKED_ENROLLMENT_CHECK_PENDING, | 284 {net::ERR_BLOCKED_ENROLLMENT_CHECK_PENDING, |
| 285 IDS_ERRORPAGES_HEADING_INTERNET_DISCONNECTED, | 285 IDS_ERRORPAGES_HEADING_INTERNET_DISCONNECTED, |
| 286 IDS_ERRORPAGES_SUMMARY_BLOCKED_ENROLLMENT_CHECK_PENDING, | 286 IDS_ERRORPAGES_SUMMARY_BLOCKED_ENROLLMENT_CHECK_PENDING, |
| 287 SUGGEST_COMPLETE_SETUP, | 287 SUGGEST_COMPLETE_SETUP, |
| 288 SHOW_NO_BUTTONS, | 288 SHOW_NO_BUTTONS, |
| 289 }, | 289 }, |
| 290 {net::ERR_SSL_FALLBACK_BEYOND_MINIMUM_VERSION, | |
| 291 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, | |
| 292 IDS_ERRORPAGES_SUMMARY_INVALID_RESPONSE, | |
| 293 SUGGEST_NONE, | |
| 294 SHOW_NO_BUTTONS, | |
| 295 }, | |
| 296 {net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH, | 290 {net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 297 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, | 291 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, |
| 298 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, | 292 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 299 SUGGEST_UNSUPPORTED_CIPHER, | 293 SUGGEST_UNSUPPORTED_CIPHER, |
| 300 SHOW_NO_BUTTONS, | 294 SHOW_NO_BUTTONS, |
| 301 }, | 295 }, |
| 302 {net::ERR_SSL_OBSOLETE_CIPHER, | 296 {net::ERR_SSL_OBSOLETE_CIPHER, |
| 303 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, | 297 IDS_ERRORPAGES_HEADING_INSECURE_CONNECTION, |
| 304 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, | 298 IDS_ERRORPAGES_SUMMARY_SSL_VERSION_OR_CIPHER_MISMATCH, |
| 305 SUGGEST_UNSUPPORTED_CIPHER, | 299 SUGGEST_UNSUPPORTED_CIPHER, |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 | 1011 |
| 1018 bool LocalizedError::HasStrings(const std::string& error_domain, | 1012 bool LocalizedError::HasStrings(const std::string& error_domain, |
| 1019 int error_code) { | 1013 int error_code) { |
| 1020 // Whether or not the there are strings for an error does not depend on | 1014 // Whether or not the there are strings for an error does not depend on |
| 1021 // whether or not the page was be generated by a POST, so just claim it was | 1015 // whether or not the page was be generated by a POST, so just claim it was |
| 1022 // not. | 1016 // not. |
| 1023 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; | 1017 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; |
| 1024 } | 1018 } |
| 1025 | 1019 |
| 1026 } // namespace error_page | 1020 } // namespace error_page |
| OLD | NEW |