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

Unified Diff: components/security_interstitials/core/browser/resources/interstitial_v2.js

Issue 2158113002: Update interstitials to match the new security indicators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows test fix Created 4 years, 5 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/security_interstitials/core/browser/resources/interstitial_v2.js
diff --git a/components/security_interstitials/core/browser/resources/interstitial_v2.js b/components/security_interstitials/core/browser/resources/interstitial_v2.js
index f25461628dc8787059e42ce5bf02a4109d7bbf98..bf3cc158d044a488869ba6dfbd27466ddfdb0d3a 100644
--- a/components/security_interstitials/core/browser/resources/interstitial_v2.js
+++ b/components/security_interstitials/core/browser/resources/interstitial_v2.js
@@ -109,6 +109,11 @@ function setupEvents() {
$('body').classList.add('safe-browsing');
}
+ if (loadTimeData.getBoolean('iconUpdate') === true)
+ $('icon').classList.add('new-icons');
+ else
+ $('icon').classList.add('old-icons');
+
if (hidePrimaryButton) {
$('primary-button').classList.add('hidden');
} else {

Powered by Google App Engine
This is Rietveld 408576698