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

Unified Diff: chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc

Issue 2481743009: Expose malware/phishing/etc. distinction from SafeBrowsingUIManager (Closed)
Patch Set: rebase Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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 dd72f247e52988197f51642806794d44cba426b3..56a13470cfb21ce2ec9c31cee11a302d698d0b12 100644
--- a/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc
+++ b/chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc
@@ -98,7 +98,8 @@ bool ChromeToolbarModelDelegate::FailsMalwareCheck() const {
security_state::SecurityStateModel::SecurityInfo security_info;
ChromeSecurityStateModelClient::FromWebContents(web_contents)
->GetSecurityInfo(&security_info);
- return security_info.fails_malware_check;
+ return security_info.malicious_content_status !=
+ security_state::SecurityStateModel::MALICIOUS_CONTENT_STATUS_NONE;
}
content::NavigationController*
« no previous file with comments | « chrome/browser/ssl/chrome_security_state_model_client.cc ('k') | components/security_state/security_state_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698