| OLD | NEW |
| 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() { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 loadTimeData.getString('openDetails') : | 58 loadTimeData.getString('openDetails') : |
| 59 loadTimeData.getString('closeDetails'); | 59 loadTimeData.getString('closeDetails'); |
| 60 if (!expandedDetails) { | 60 if (!expandedDetails) { |
| 61 // Record a histogram entry only the first time that details is opened. | 61 // Record a histogram entry only the first time that details is opened. |
| 62 sendCommand(ssl ? CMD_MORE : SB_CMD_EXPANDED_SEE_MORE); | 62 sendCommand(ssl ? CMD_MORE : SB_CMD_EXPANDED_SEE_MORE); |
| 63 expandedDetails = true; | 63 expandedDetails = true; |
| 64 } | 64 } |
| 65 }); | 65 }); |
| 66 | 66 |
| 67 preventDefaultOnPoundLinkClicks(); | 67 preventDefaultOnPoundLinkClicks(); |
| 68 setupCheckbox(); |
| 68 } | 69 } |
| 69 | 70 |
| 70 document.addEventListener('DOMContentLoaded', setupEvents); | 71 document.addEventListener('DOMContentLoaded', setupEvents); |
| OLD | NEW |