diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 02:36:47 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 02:36:47 +0000 |
commit | 26b22116fba9c4c4d860a4aeb7e55b95ade2b847 (patch) | |
tree | 5c38ec96158f6a42d364627e49239b4e4ce87e4c /chrome/browser/page_info_model.cc | |
parent | 5b088adf98cdd69d48500af0974c701cc3aa60a8 (diff) | |
download | chromium_src-26b22116fba9c4c4d860a4aeb7e55b95ade2b847.zip chromium_src-26b22116fba9c4c4d860a4aeb7e55b95ade2b847.tar.gz chromium_src-26b22116fba9c4c4d860a4aeb7e55b95ade2b847.tar.bz2 |
Include list of certificate errors in page info bubble.
BUG=41549
TEST=go to site which shows cert error icon in omnibox, bring up page info bubble.
Review URL: http://codereview.chromium.org/6334043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73746 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/page_info_model.cc')
-rw-r--r-- | chrome/browser/page_info_model.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/page_info_model.cc b/chrome/browser/page_info_model.cc index 65cfca6..365852f 100644 --- a/chrome/browser/page_info_model.cc +++ b/chrome/browser/page_info_model.cc @@ -12,6 +12,7 @@ #include "base/utf_string_conversions.h" #include "chrome/browser/cert_store.h" #include "chrome/browser/profiles/profile.h" +#include "chrome/browser/ssl/ssl_error_info.h" #include "chrome/browser/ssl/ssl_manager.h" #include "grit/generated_resources.h" #include "grit/theme_resources.h" @@ -139,6 +140,15 @@ PageInfoModel::PageInfoModel(Profile* profile, icon_id = ssl.security_style() == SECURITY_STYLE_UNAUTHENTICATED ? ICON_STATE_WARNING_MAJOR : ICON_STATE_ERROR; + const string16 bullet = UTF8ToUTF16("\n • "); + std::vector<SSLErrorInfo> errors; + SSLErrorInfo::GetErrorsForCertStatus(ssl.cert_id(), ssl.cert_status(), + url, &errors); + for (size_t i = 0; i < errors.size(); ++i) { + description += bullet; + description += errors[i].short_description(); + } + if (ssl.cert_status() & net::CERT_STATUS_NON_UNIQUE_NAME) { description += ASCIIToUTF16("\n\n"); description += l10n_util::GetStringUTF16( |