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

Side by Side Diff: chrome/browser/ui/gtk/certificate_viewer_gtk.cc

Issue 10554010: Remove BrowserList::GetLastActive usage from WebUI pages. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 6 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 | Annotate | Revision Log
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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 #include <pango/pango-font.h> 6 #include <pango/pango-font.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 ShowCertExportDialog(NULL, GTK_WINDOW(viewer->dialog_), 713 ShowCertExportDialog(NULL, GTK_WINDOW(viewer->dialog_),
714 viewer->cert_chain_list_[cert_index]); 714 viewer->cert_chain_list_[cert_index]);
715 } 715 }
716 716
717 void CertificateViewer::Show() { 717 void CertificateViewer::Show() {
718 gtk_util::ShowDialog(dialog_); 718 gtk_util::ShowDialog(dialog_);
719 } 719 }
720 720
721 } // namespace 721 } // namespace
722 722
723 void ShowCertificateViewer(gfx::NativeWindow parent, 723 void ShowCertificateViewer(content::WebContents* web_contents,
724 gfx::NativeWindow parent,
724 net::X509Certificate* cert) { 725 net::X509Certificate* cert) {
725 (new CertificateViewer(parent, cert))->Show(); 726 (new CertificateViewer(parent, cert))->Show();
726 } 727 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/page_info_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698