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

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

Issue 437113002: Delete the old SSL interstitial and Finch trial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing IDS_FLAGS_SSL_INTERSTITIAL strings 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // UI modifications and event listeners that take place after load.
6 function setupEvents() {
7 $('proceed-button').hidden = false;
8 $('proceed-button').addEventListener('click', function() {
9 sendCommand(CMD_PROCEED);
10 });
11
12 var details = document.querySelector('details.more');
13 if ($('more-info-title').textContent == '') {
14 details.hidden = true;
15 } else {
16 details.addEventListener('toggle', function handleToggle() {
17 if (!details.open)
18 return;
19 sendCommand(CMD_MORE);
20 details.removeEventListener('toggle', handleToggle);
21 }, false);
22 }
23
24 $('exit-button').addEventListener('click', function() {
25 sendCommand(CMD_DONT_PROCEED);
26 });
27 }
28
29 document.addEventListener('DOMContentLoaded', setupEvents);
OLDNEW
« no previous file with comments | « chrome/browser/resources/ssl/roadblock.html ('k') | chrome/browser/resources/ssl/ssl_errors_common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698