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

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, 11 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 70746)
+++ chrome/browser/resources/safe_browsing_malware_block.html (working copy)
@@ -46,6 +46,11 @@
.main {
margin:0px 90px 10px;
}
+.footer {
+ margin-top: 40px;
+ padding-top: 10px;
+ border-top: 1px solid #ddd;
+}
.submission {
margin:15px 5px 15px 0px;
padding:0px;
@@ -53,8 +58,6 @@
input {
margin:0px;
}
-.proceedbutton {
-}
.helpbutton {
float:right;
}
@@ -69,7 +72,6 @@
margin-right:5px;
}
-
.green {
background: -webkit-linear-gradient(#83c260, #71b44c 44%, #549d2c);
border: 1px solid #4c7336;
@@ -107,6 +109,20 @@
.green:focus {
border: 1px solid #000;
}
+
+label.checkbox {
+ position: relative;
+}
+
+label.checkbox > input {
+ margin-top: 3px;
+ position: absolute;
+}
+
+label.checkbox > span {
+ -webkit-margin-start: 20px;
+ display: block;
+}
</style>
<script>
@@ -114,6 +130,15 @@
window.domAutomationController.setAutomationId(1);
window.domAutomationController.send(cmd);
}
+
+ function savePreference() {
+ var checkBox = document.getElementById('checkreport');
+ if (checkBox.checked) {
+ sendCommand('doReport');
+ } else {
+ sendCommand('dontReport');
+ }
+ }
</script>
</head>
@@ -137,6 +162,14 @@
<div class="main" i18n-values=".innerHTML:description3"></div>
+ <div class="main footer" jsdisplay="displaycheckbox">
+ <label class="checkbox" for="checkreport">
+ <input name="checked" id="checkreport" type="checkbox"
+ jsvalues=".checked:boxchecked" onclick="savePreference()">
+ <span i18n-content="confirm_text"></span>
+ </label>
+ </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