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

Side by Side Diff: chrome/browser/resources/ssl/ssl_errors_common.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
« no previous file with comments | « chrome/browser/resources/ssl/roadblock.js ('k') | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 // Should match SSLBlockingPageCommands in ssl_blocking_page.cc. 5 // Should match SSLBlockingPageCommands in ssl_blocking_page.cc.
6 var CMD_DONT_PROCEED = 0; 6 var CMD_DONT_PROCEED = 0;
7 var CMD_PROCEED = 1; 7 var CMD_PROCEED = 1;
8 var CMD_MORE = 2; 8 var CMD_MORE = 2;
9 var CMD_RELOAD = 3; 9 var CMD_RELOAD = 3;
10 var CMD_HELP = 4; 10 var CMD_HELP = 4;
(...skipping 26 matching lines...) Expand all
37 37
38 function sharedSetup() { 38 function sharedSetup() {
39 document.addEventListener('contextmenu', function(e) { 39 document.addEventListener('contextmenu', function(e) {
40 e.preventDefault(); 40 e.preventDefault();
41 }); 41 });
42 document.addEventListener('keypress', keyPressHandler); 42 document.addEventListener('keypress', keyPressHandler);
43 } 43 }
44 44
45 document.addEventListener('DOMContentLoaded', sharedSetup); 45 document.addEventListener('DOMContentLoaded', sharedSetup);
46 46
47 // For the M37 Finch trial. https://crbug.com/386033
48 function setupSSLFinchTrial() {
49 if (loadTimeData.getString('trialCondition') == 'V2Yellow')
50 $('body').classList.add('yellow');
51 else if (loadTimeData.getString('trialCondition') == 'V2WithGuard')
52 $('body').classList.add('ssl-guard');
53 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/ssl/roadblock.js ('k') | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698