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

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

Issue 2330753002: Update links for the SBER opt-in on interstitials (Closed)
Patch Set: Update variable name 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/security_interstitials/core/browser/resources/extended_reporting.js
diff --git a/components/security_interstitials/core/browser/resources/extended_reporting.js b/components/security_interstitials/core/browser/resources/extended_reporting.js
index 817b3ff63463cdfd2658ca4c0eb4a0807dfdb7be..5a72ad12204ebfe38bdaed6ef1cee052471af792 100644
--- a/components/security_interstitials/core/browser/resources/extended_reporting.js
+++ b/components/security_interstitials/core/browser/resources/extended_reporting.js
@@ -33,6 +33,12 @@ function setupExtendedReportingCheckbox() {
$('body').classList.add('extended-reporting-has-checkbox');
+ if ($('whitepaper-link')) {
+ $('whitepaper-link').addEventListener('click', function(event) {
+ sendCommand(CMD_OPEN_WHITEPAPER);
+ });
+ }
+
$('opt-in-checkbox').addEventListener('click', function() {
sendCommand($('opt-in-checkbox').checked ?
CMD_DO_REPORT :

Powered by Google App Engine
This is Rietveld 408576698