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

Unified Diff: components/toolbar/toolbar_model_impl.cc

Issue 2331133002: [Material] Show "Dangerous" for Safe Browsing Security State (Closed)
Patch Set: Created 4 years, 3 months 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: components/toolbar/toolbar_model_impl.cc
diff --git a/components/toolbar/toolbar_model_impl.cc b/components/toolbar/toolbar_model_impl.cc
index 47388f7889c05a85e65156d58df6e8ebffb71e34..5aa56e9c45e088377d381d1a636e8b14b988462a 100644
--- a/components/toolbar/toolbar_model_impl.cc
+++ b/components/toolbar/toolbar_model_impl.cc
@@ -134,7 +134,9 @@ base::string16 ToolbarModelImpl::GetSecureVerboseText() const {
case SecurityStateModel::SECURE:
return l10n_util::GetStringUTF16(IDS_SECURE_VERBOSE_STATE);
case SecurityStateModel::SECURITY_ERROR:
- return l10n_util::GetStringUTF16(IDS_NOT_SECURE_VERBOSE_STATE);
+ return delegate_->GetFailsMalwareCheck()
+ ? l10n_util::GetStringUTF16(IDS_DANGEROUS_VERBOSE_STATE)
+ : l10n_util::GetStringUTF16(IDS_NOT_SECURE_VERBOSE_STATE);
Peter Kasting 2016/09/13 05:55:59 Nit: Move ?: inside call to GetStringUTF16()
spqchan 2016/09/13 21:23:41 Done.
default:
return base::string16();
}
« components/toolbar/toolbar_model_delegate.h ('K') | « components/toolbar/toolbar_model_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698