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

Unified Diff: chrome/browser/resources/safe_browsing_malware_block.html

Issue 5102001: Add a checkbox to the malware interstitial page, for user to opt-in to send m... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 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/resources/safe_browsing_malware_block.html
===================================================================
--- chrome/browser/resources/safe_browsing_malware_block.html (revision 66339)
+++ chrome/browser/resources/safe_browsing_malware_block.html (working copy)
@@ -201,8 +201,17 @@
moreButton.style.display = 'inline'
lessButton.style.display = 'none'
}
+ }
+ function savepreference() {
+ var checkBox = document.getElementById('checkreport')
+ if (checkBox.checked) {
+ sendCommand('doReport')
+ } else {
+ sendCommand('dontReport')
+ }
}
+
</script>
</head>
<body oncontextmenu="return false;">
@@ -227,6 +236,13 @@
<div class="main" i18n-values=".innerHTML:description3" style="margin-top:10px"></div>
+ <div class="main" jsdisplay="displaycheckbox">
+ <hr>
+ <form class="submission">
+ <input name="checked" id="checkreport" type="checkbox" jsvalues=".checked:boxchecked" onclick="savepreference()">&nbsp;<label for="checkreport" i18n-content="confirm_text"></label>
+ </form>
+ </div>
+
</div>
</td>
</table>

Powered by Google App Engine
This is Rietveld 408576698