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

Side by Side Diff: chrome/browser/resources/ssl/interstitial_v2.js

Issue 445493002: Delete the Safe Browsing V2 interstitial and Finch trial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing binary files Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is the shared code for the new (Chrome 37) security interstitials. It is 5 // This is the shared code for the new (Chrome 37) security interstitials. It is
6 // used for both SSL interstitials and Safe Browsing interstitials. 6 // used for both SSL interstitials and Safe Browsing interstitials.
7 7
8 var expandedDetails = false; 8 var expandedDetails = false;
9 9
10 function setupEvents() { 10 function setupEvents() {
11 var overridable = loadTimeData.getBoolean('overridable'); 11 var overridable = loadTimeData.getBoolean('overridable');
12 var ssl = loadTimeData.getBoolean('ssl'); 12 var ssl = loadTimeData.getBoolean('ssl');
13 13
14 if (ssl) { 14 if (ssl) {
15 $('body').classList.add('ssl'); 15 $('body').classList.add('ssl');
16 $('error-code').textContent = loadTimeData.getString('errorCode'); 16 $('error-code').textContent = loadTimeData.getString('errorCode');
17 $('error-code').classList.remove('hidden'); 17 $('error-code').classList.remove('hidden');
18 } else { 18 } else {
19 $('body').classList.add('safe-browsing'); 19 $('body').classList.add('safe-browsing');
20 setupMalwareFinchExperiment(); /* From safe_browsing_v3.js. */
21 } 20 }
22 21
23 $('primary-button').addEventListener('click', function() { 22 $('primary-button').addEventListener('click', function() {
24 if (!ssl) 23 if (!ssl)
25 sendCommand(SB_CMD_TAKE_ME_BACK); 24 sendCommand(SB_CMD_TAKE_ME_BACK);
26 else if (overridable) 25 else if (overridable)
27 sendCommand(CMD_DONT_PROCEED); 26 sendCommand(CMD_DONT_PROCEED);
28 else 27 else
29 sendCommand(CMD_RELOAD); 28 sendCommand(CMD_RELOAD);
30 }); 29 });
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 sendCommand(ssl ? CMD_MORE : SB_CMD_EXPANDED_SEE_MORE); 66 sendCommand(ssl ? CMD_MORE : SB_CMD_EXPANDED_SEE_MORE);
68 expandedDetails = true; 67 expandedDetails = true;
69 } 68 }
70 }); 69 });
71 70
72 preventDefaultOnPoundLinkClicks(); 71 preventDefaultOnPoundLinkClicks();
73 setupCheckbox(); 72 setupCheckbox();
74 } 73 }
75 74
76 document.addEventListener('DOMContentLoaded', setupEvents); 75 document.addEventListener('DOMContentLoaded', setupEvents);
OLDNEW
« no previous file with comments | « chrome/browser/resources/safe_browsing/safe_browsing_v3.js ('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