Index: chrome/browser/ui/gtk/certificate_viewer.cc |
diff --git a/chrome/browser/ui/gtk/certificate_viewer.cc b/chrome/browser/ui/gtk/certificate_viewer.cc |
index 7a077937c1ab52218a39456d82137da7b85ba382..609514cf49025625355041f181d49fe5c2d10ef7 100644 |
--- a/chrome/browser/ui/gtk/certificate_viewer.cc |
+++ b/chrome/browser/ui/gtk/certificate_viewer.cc |
@@ -2,8 +2,6 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/ui/gtk/certificate_viewer.h" |
- |
#include <gtk/gtk.h> |
#include <algorithm> |
@@ -14,6 +12,7 @@ |
#include "base/string_number_conversions.h" |
#include "base/time.h" |
#include "base/utf_string_conversions.h" |
+#include "chrome/browser/certificate_viewer.h" |
#include "chrome/browser/ui/gtk/certificate_dialogs.h" |
#include "chrome/browser/ui/gtk/gtk_util.h" |
#include "chrome/common/net/x509_certificate_model.h" |
@@ -22,6 +21,7 @@ |
#include "ui/base/gtk/gtk_hig_constants.h" |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/gfx/gtk_util.h" |
+#include "ui/gfx/native_widget_types.h" |
namespace { |
@@ -708,14 +708,14 @@ void CertificateViewer::Show() { |
} // namespace |
-void ShowCertificateViewer(gfx::NativeWindow parent, |
- net::X509Certificate::OSCertHandle cert) { |
+void ShowNativeCertificateViewer(gfx::NativeWindow parent, |
+ net::X509Certificate::OSCertHandle cert) { |
net::X509Certificate::OSCertHandles cert_chain; |
x509_certificate_model::GetCertChainFromCert(cert, &cert_chain); |
(new CertificateViewer(parent, cert_chain))->Show(); |
} |
-void ShowCertificateViewer(gfx::NativeWindow parent, |
- net::X509Certificate* cert) { |
- ShowCertificateViewer(parent, cert->os_cert_handle()); |
+void ShowNativeCertificateViewer(gfx::NativeWindow parent, |
+ net::X509Certificate* cert) { |
+ ShowNativeCertificateViewer(parent, cert->os_cert_handle()); |
} |