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

Unified Diff: chrome/browser/resources/security_warnings/safe_browsing.js

Issue 935663004: Add checkbox for reporting invalid TLS/SSL cert chains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert accidental deletion (fixes failing CaptivePortal tests) Created 5 years, 9 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/security_warnings/safe_browsing.js
diff --git a/chrome/browser/resources/security_warnings/safe_browsing.js b/chrome/browser/resources/security_warnings/safe_browsing.js
deleted file mode 100644
index 1fa4555072bf762805b16ea5741bfcd6846582f3..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/security_warnings/safe_browsing.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Other constants defined in safe_browsing_blocking_page.cc.
-var SB_BOX_CHECKED = 'boxchecked';
-var SB_DISPLAY_CHECK_BOX = 'displaycheckbox';
-
-// This sets up the Extended Safe Browsing Reporting opt-in.
-function setupCheckbox() {
- if (loadTimeData.getString('type') != 'SAFEBROWSING' ||
- !loadTimeData.getBoolean(SB_DISPLAY_CHECK_BOX)) {
- return;
- }
-
- $('opt-in-label').innerHTML = loadTimeData.getString('optInLink');
- $('opt-in-checkbox').checked = loadTimeData.getBoolean(SB_BOX_CHECKED);
- $('malware-opt-in').classList.remove('hidden');
- $('body').classList.add('safe-browsing-has-checkbox');
-
- $('opt-in-checkbox').addEventListener('click', function() {
- sendCommand(
- $('opt-in-checkbox').checked ? CMD_DO_REPORT : CMD_DONT_REPORT);
- });
-}
« no previous file with comments | « chrome/browser/resources/security_warnings/interstitial_v2.js ('k') | chrome/browser/safe_browsing/ping_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698