From 57c6a6579cf274fe37d6196931a3034d90da7113 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Mon, 4 May 2009 07:58:34 +0000 Subject: Replace all occurrances of WebContents with TabContents. Review URL: http://codereview.chromium.org/99177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15194 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ssl/ssl_policy.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chrome/browser/ssl/ssl_policy.cc') diff --git a/chrome/browser/ssl/ssl_policy.cc b/chrome/browser/ssl/ssl_policy.cc index ebe5e60..e921d42 100644 --- a/chrome/browser/ssl/ssl_policy.cc +++ b/chrome/browser/ssl/ssl_policy.cc @@ -10,9 +10,8 @@ #include "chrome/browser/cert_store.h" #include "chrome/browser/renderer_host/render_view_host.h" #include "chrome/browser/ssl/ssl_error_info.h" -#include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/tab_contents/navigation_entry.h" -#include "chrome/browser/tab_contents/web_contents.h" +#include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/jstemplate_builder.h" #include "chrome/common/l10n_util.h" #include "chrome/common/notification_service.h" @@ -125,7 +124,7 @@ static void ShowErrorPage(SSLPolicy* policy, SSLManager::CertError* error) { std::string html_text(jstemplate_builder::GetTemplateHtml(html, &strings, "template_root")); - WebContents* tab = error->GetWebContents(); + TabContents* tab = error->GetTabContents(); int cert_id = CertStore::GetSharedInstance()->StoreCert( error->ssl_info().cert, tab->render_view_host()->process()->pid()); std::string security_info = @@ -217,7 +216,7 @@ void SSLPolicy::OnCertError(SSLManager::CertError* error) { void SSLPolicy::OnMixedContent(SSLManager::MixedContentHandler* handler) { // Get the user's mixed content preference. - PrefService* prefs = handler->GetWebContents()->profile()->GetPrefs(); + PrefService* prefs = handler->GetTabContents()->profile()->GetPrefs(); FilterPolicy::Type filter_policy = FilterPolicy::FromInt(prefs->GetInteger(prefs::kMixedContentFiltering)); -- cgit v1.1