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 var keyPressState = 0; | 9 var keyPressState = 0; |
10 | 10 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 loadTimeData.getString('closeDetails'); | 166 loadTimeData.getString('closeDetails'); |
167 if (!expandedDetails) { | 167 if (!expandedDetails) { |
168 // Record a histogram entry only the first time that details is opened. | 168 // Record a histogram entry only the first time that details is opened. |
169 sendCommand(CMD_SHOW_MORE_SECTION); | 169 sendCommand(CMD_SHOW_MORE_SECTION); |
170 expandedDetails = true; | 170 expandedDetails = true; |
171 } | 171 } |
172 }); | 172 }); |
173 } | 173 } |
174 | 174 |
175 preventDefaultOnPoundLinkClicks(); | 175 preventDefaultOnPoundLinkClicks(); |
176 setupCheckbox(); | 176 setupExtendedReportingCheckbox(); |
177 setupSSLDebuggingInfo(); | 177 setupSSLDebuggingInfo(); |
178 document.addEventListener('keypress', handleKeypress); | 178 document.addEventListener('keypress', handleKeypress); |
179 } | 179 } |
180 | 180 |
181 document.addEventListener('DOMContentLoaded', setupEvents); | 181 document.addEventListener('DOMContentLoaded', setupEvents); |
OLD | NEW |