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

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

Issue 6066011: Add a checkbox to the malware interstitial page, for user to opt-in to send m... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 12 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/safe_browsing_malware_block.html
===================================================================
--- chrome/browser/resources/safe_browsing_malware_block.html (revision 70457)
+++ chrome/browser/resources/safe_browsing_malware_block.html (working copy)
@@ -114,6 +114,15 @@
window.domAutomationController.setAutomationId(1);
window.domAutomationController.send(cmd);
}
+
+ function savepreference() {
arv (Not doing code reviews) 2011/01/05 21:33:14 savePreference
panayiotis 2011/01/05 23:00:05 Done.
+ var checkBox = document.getElementById('checkreport');
+ if (checkBox.checked) {
+ sendCommand('doReport');
+ } else {
+ sendCommand('dontReport');
+ }
+ }
</script>
</head>
@@ -137,6 +146,13 @@
<div class="main" i18n-values=".innerHTML:description3"></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>
arv (Not doing code reviews) 2011/01/05 21:33:14 Long line
arv (Not doing code reviews) 2011/01/05 21:33:14 Can you use a margin instead of the &nbsp;
arv (Not doing code reviews) 2011/01/05 21:33:14 The label should go around the input <label><inpu
panayiotis 2011/01/05 23:00:05 Done.
panayiotis 2011/01/05 23:00:05 Done.
panayiotis 2011/01/05 23:00:05 Done.
+ </form>
+ </div>
+
</div>
</td>
</table>
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698