Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: chrome/common/localized_error.cc

Issue 1286793002: Treat failure to parse certificates as SSL protocol errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and now with more keys Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/base/net_error_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/common/localized_error.h" 5 #include "chrome/common/localized_error.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.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/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 IDS_ERRORPAGES_DETAILS_SSL_VERSION_OR_CIPHER_MISMATCH, 321 IDS_ERRORPAGES_DETAILS_SSL_VERSION_OR_CIPHER_MISMATCH,
322 SUGGEST_NONE, 322 SUGGEST_NONE,
323 }, 323 },
324 {net::ERR_TEMPORARY_BACKOFF, 324 {net::ERR_TEMPORARY_BACKOFF,
325 IDS_ERRORPAGES_TITLE_ACCESS_DENIED, 325 IDS_ERRORPAGES_TITLE_ACCESS_DENIED,
326 IDS_ERRORPAGES_HEADING_ACCESS_DENIED, 326 IDS_ERRORPAGES_HEADING_ACCESS_DENIED,
327 IDS_ERRORPAGES_SUMMARY_TEMPORARY_BACKOFF, 327 IDS_ERRORPAGES_SUMMARY_TEMPORARY_BACKOFF,
328 IDS_ERRORPAGES_DETAILS_TEMPORARY_BACKOFF, 328 IDS_ERRORPAGES_DETAILS_TEMPORARY_BACKOFF,
329 SUGGEST_NONE, 329 SUGGEST_NONE,
330 }, 330 },
331 {net::ERR_SSL_SERVER_CERT_BAD_FORMAT,
332 IDS_ERRORPAGES_TITLE_LOAD_FAILED,
333 IDS_ERRORPAGES_HEADING_SSL_PROTOCOL_ERROR,
334 IDS_ERRORPAGES_SUMMARY_SSL_PROTOCOL_ERROR,
335 IDS_ERRORPAGES_DETAILS_SSL_PROTOCOL_ERROR,
336 SUGGEST_NONE,
337 },
331 }; 338 };
332 339
333 // Special error page to be used in the case of navigating back to a page 340 // Special error page to be used in the case of navigating back to a page
334 // generated by a POST. LocalizedError::HasStrings expects this net error code 341 // generated by a POST. LocalizedError::HasStrings expects this net error code
335 // to also appear in the array above. 342 // to also appear in the array above.
336 const LocalizedErrorMap repost_error = { 343 const LocalizedErrorMap repost_error = {
337 net::ERR_CACHE_MISS, 344 net::ERR_CACHE_MISS,
338 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE, 345 IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
339 IDS_HTTP_POST_WARNING_TITLE, 346 IDS_HTTP_POST_WARNING_TITLE,
340 IDS_ERRORPAGES_HTTP_POST_WARNING, 347 IDS_ERRORPAGES_HTTP_POST_WARNING,
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 cache_button->SetString("cacheUrl", cache_url); 935 cache_button->SetString("cacheUrl", cache_url);
929 cache_button->SetInteger("trackingId", cache_tracking_id); 936 cache_button->SetInteger("trackingId", cache_tracking_id);
930 error_strings->Set("cacheButton", cache_button.release()); 937 error_strings->Set("cacheButton", cache_button.release());
931 938
932 // Remove the item from suggestions dictionary so that it does not get 939 // Remove the item from suggestions dictionary so that it does not get
933 // displayed by the template in the details section. 940 // displayed by the template in the details section.
934 suggestions->Remove(0, nullptr); 941 suggestions->Remove(0, nullptr);
935 } 942 }
936 } 943 }
937 } 944 }
OLDNEW
« no previous file with comments | « no previous file | net/base/net_error_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698