summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ssl
diff options
context:
space:
mode:
authordavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-07 22:55:27 +0000
committerdavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-07 22:55:27 +0000
commit8ae178b1da02c2ab5104060a711c305cb826221d (patch)
treead8f723b09064d68239d6db01bf0c7532831137d /chrome/browser/ssl
parent4fe95a617e494a2e279d9d623816f3e3b7aed944 (diff)
downloadchromium_src-8ae178b1da02c2ab5104060a711c305cb826221d.zip
chromium_src-8ae178b1da02c2ab5104060a711c305cb826221d.tar.gz
chromium_src-8ae178b1da02c2ab5104060a711c305cb826221d.tar.bz2
Refactor certificate viewer code behind ShowCertificateViewer
This abstracts away the platform-specific certificate viewer behind a common function call. R=wtc,mattm BUG=none TEST=Viewing the certificate information on an SSL session continues to work Review URL: http://codereview.chromium.org/2815024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl')
-rw-r--r--chrome/browser/ssl/ssl_client_auth_handler_gtk.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/ssl/ssl_client_auth_handler_gtk.cc b/chrome/browser/ssl/ssl_client_auth_handler_gtk.cc
index 72f332a..1045ef9 100644
--- a/chrome/browser/ssl/ssl_client_auth_handler_gtk.cc
+++ b/chrome/browser/ssl/ssl_client_auth_handler_gtk.cc
@@ -15,7 +15,7 @@
#include "base/logging.h"
#include "base/nss_util.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/gtk/certificate_viewer.h"
+#include "chrome/browser/certificate_viewer.h"
#include "chrome/browser/gtk/gtk_util.h"
#include "chrome/third_party/mozilla_security_manager/nsNSSCertHelper.h"
#include "chrome/third_party/mozilla_security_manager/nsNSSCertificate.h"
@@ -305,8 +305,7 @@ void SSLClientCertificateSelector::OnResponse(
}
if (response_id == RESPONSE_SHOW_CERT_INFO) {
if (cert)
- ShowCertificateViewer(GTK_WINDOW(cert_selector->dialog_),
- cert->os_cert_handle());
+ ShowCertificateViewer(GTK_WINDOW(cert_selector->dialog_), cert);
return;
}
cert_selector->delegate_->CertificateSelected(cert);