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

Unified Diff: chrome/browser/resources/ssl/ssl_errors_common.js

Issue 319193002: Update the malware interstitial to have the new layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again Created 6 years, 6 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: chrome/browser/resources/ssl/ssl_errors_common.js
diff --git a/chrome/browser/resources/ssl/ssl_errors_common.js b/chrome/browser/resources/ssl/ssl_errors_common.js
index 190a8eb537ca85c71523340f5dd64e03859c2101..11dafc22be8901a64e94d13fc71a58e4e7ea891d 100644
--- a/chrome/browser/resources/ssl/ssl_errors_common.js
+++ b/chrome/browser/resources/ssl/ssl_errors_common.js
@@ -41,4 +41,15 @@ function sharedSetup() {
document.addEventListener('keypress', keyPressHandler);
}
+// This applies SSL-specific styling to the V2 security interstitials.
+function applySSLStyle() {
+ $('explanation-paragraph').innerHTML =
+ loadTimeData.getString('explanationParagraph');
+ $('explanation-paragraph').classList.toggle('hidden');
+ $('final-paragraph').innerHTML = loadTimeData.getString('finalParagraph');
+ $('final-paragraph').classList.toggle('hidden');
+
+ $('body').classList.add('ssl');
+}
+
document.addEventListener('DOMContentLoaded', sharedSetup);
« no previous file with comments | « chrome/browser/resources/ssl/interstitial_v2.js ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698