| Index: chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc
|
| diff --git a/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc b/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc
|
| index dc2889dcea1bd15cd3ecfe3d8f76171085331487..92437358525e25f342637c8783bd1ccda98bd057 100644
|
| --- a/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc
|
| +++ b/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc
|
| @@ -91,6 +91,16 @@ scoped_refptr<net::X509Certificate> ChromeToolbarModelDelegate::GetCertificate()
|
| return cert;
|
| }
|
|
|
| +bool ChromeToolbarModelDelegate::FailsMalwareCheck() const {
|
| + content::WebContents* web_contents = GetActiveWebContents();
|
| + // If there is no active WebContents (which can happen during toolbar
|
| + // initialization), so nothing can fail.
|
| + return web_contents &&
|
| + ChromeSecurityStateModelClient::FromWebContents(web_contents)
|
| + ->GetSecurityInfo()
|
| + .fails_malware_check;
|
| +}
|
| +
|
| content::NavigationController*
|
| ChromeToolbarModelDelegate::GetNavigationController() const {
|
| // This |current_tab| can be null during the initialization of the toolbar
|
|
|