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

Unified Diff: chrome/browser/chromeos/cros/cert_library.cc

Issue 7628012: Use issuer common name for cert description in network dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/cert_library.cc
diff --git a/chrome/browser/chromeos/cros/cert_library.cc b/chrome/browser/chromeos/cros/cert_library.cc
index 4c4709cea4f77bd24673d7b11e9fada002a8e3ac..895d752059d023b085ca99d1a5dd51d61d157b56 100644
--- a/chrome/browser/chromeos/cros/cert_library.cc
+++ b/chrome/browser/chromeos/cros/cert_library.cc
@@ -35,7 +35,9 @@ string16 GetDisplayString(net::X509Certificate* cert, bool hardware_backed) {
org = cert->subject().organization_names[0];
if (org.empty())
org = cert->subject().GetDisplayName();
- string16 issued_by = UTF8ToUTF16(org);
+ string16 issued_by = UTF8ToUTF16(
+ x509_certificate_model::GetIssuerCommonName(cert->os_cert_handle(),
+ org)); // alternative text
string16 issued_to = UTF8ToUTF16(
x509_certificate_model::GetCertNameOrNickname(cert->os_cert_handle()));
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698