summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ssl_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ssl_manager.cc')
-rw-r--r--chrome/browser/ssl_manager.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/ssl_manager.cc b/chrome/browser/ssl_manager.cc
index eabecb3..77b8c12 100644
--- a/chrome/browser/ssl_manager.cc
+++ b/chrome/browser/ssl_manager.cc
@@ -62,7 +62,7 @@ class SSLInfoBar : public InfoBarItemView,
SSLManager* manager_;
scoped_ptr<Task> task_;
- DISALLOW_EVIL_CONSTRUCTORS(SSLInfoBar);
+ DISALLOW_COPY_AND_ASSIGN(SSLInfoBar);
};
SSLInfoBar::SSLInfoBar(SSLManager* manager,
@@ -232,15 +232,16 @@ bool SSLManager::SetMaxSecurityStyle(SecurityStyle style) {
// Delegate API method.
void SSLManager::AddMessageToConsole(const std::wstring& msg,
ConsoleMessageLevel level) {
- WebContents* web_contents =
- controller_->GetTabContents(TAB_CONTENTS_WEB)->AsWebContents();
+ TabContents* tab_contents = controller_->GetTabContents(TAB_CONTENTS_WEB);
+ if (!tab_contents)
+ return;
+ WebContents* web_contents = tab_contents->AsWebContents();
if (!web_contents)
return;
web_contents->AddMessageToConsole(std::wstring(), msg, level);
}
-
// Delegate API method.
void SSLManager::DenyCertForHost(net::X509Certificate* cert,
const std::string& host) {