diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-25 21:37:09 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-25 21:37:09 +0000 |
commit | ea049a01f82647dc12e4001c8be03e4124faaff3 (patch) | |
tree | 0bb59450d13be2f37e404cfd2374ea27fba7461f /chrome/browser/ui/certificate_dialogs.cc | |
parent | 5ca3ddf71cb1db27e206c4d048770ad21e5688c9 (diff) | |
download | chromium_src-ea049a01f82647dc12e4001c8be03e4124faaff3.zip chromium_src-ea049a01f82647dc12e4001c8be03e4124faaff3.tar.gz chromium_src-ea049a01f82647dc12e4001c8be03e4124faaff3.tar.bz2 |
Convert a bunch of WebContentsObservers to use web_contents() instead of tab_contents(), as well as all the dependent code.
BUG=98716
TBR=joi
Review URL: http://codereview.chromium.org/8982008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/certificate_dialogs.cc')
-rw-r--r-- | chrome/browser/ui/certificate_dialogs.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/chrome/browser/ui/certificate_dialogs.cc b/chrome/browser/ui/certificate_dialogs.cc index 006a953..406b48c 100644 --- a/chrome/browser/ui/certificate_dialogs.cc +++ b/chrome/browser/ui/certificate_dialogs.cc @@ -19,6 +19,7 @@ #include "ui/base/l10n/l10n_util.h" using content::BrowserThread; +using content::WebContents; namespace { @@ -61,7 +62,7 @@ std::string GetBase64String(net::X509Certificate::OSCertHandle cert) { class Exporter : public SelectFileDialog::Listener { public: - Exporter(TabContents* tab_contents, gfx::NativeWindow parent, + Exporter(WebContents* web_contents, gfx::NativeWindow parent, net::X509Certificate::OSCertHandle cert); ~Exporter(); @@ -76,7 +77,7 @@ class Exporter : public SelectFileDialog::Listener { net::X509Certificate::OSCertHandles cert_chain_list_; }; -Exporter::Exporter(TabContents* tab_contents, +Exporter::Exporter(WebContents* web_contents, gfx::NativeWindow parent, net::X509Certificate::OSCertHandle cert) : select_file_dialog_(SelectFileDialog::Create(this)) { @@ -92,7 +93,7 @@ Exporter::Exporter(TabContents* tab_contents, ShowCertSelectFileDialog(select_file_dialog_.get(), SelectFileDialog::SELECT_SAVEAS_FILE, suggested_path, - tab_contents, + web_contents, parent, NULL); } @@ -144,7 +145,7 @@ void Exporter::FileSelectionCanceled(void* params) { void ShowCertSelectFileDialog(SelectFileDialog* select_file_dialog, SelectFileDialog::Type type, const FilePath& suggested_path, - TabContents* tab_contents, + WebContents* web_contents, gfx::NativeWindow parent, void* params) { SelectFileDialog::FileTypeInfo file_type_info; @@ -170,12 +171,12 @@ void ShowCertSelectFileDialog(SelectFileDialog* select_file_dialog, select_file_dialog->SelectFile( type, string16(), suggested_path, &file_type_info, 1, - FILE_PATH_LITERAL("crt"), tab_contents, + FILE_PATH_LITERAL("crt"), web_contents, parent, params); } -void ShowCertExportDialog(TabContents* tab_contents, +void ShowCertExportDialog(WebContents* web_contents, gfx::NativeWindow parent, net::X509Certificate::OSCertHandle cert) { - new Exporter(tab_contents, parent, cert); + new Exporter(web_contents, parent, cert); } |