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

Side by Side Diff: chrome/browser/resources/cryptotoken/cryptotokenbackground.js

Issue 847193003: Don't allow HTTP origins for the CryptoToken extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/resources/cryptotoken/enroller.js » ('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 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 /** 5 /**
6 * @fileoverview CryptoToken background page 6 * @fileoverview CryptoToken background page
7 */ 7 */
8 8
9 'use strict'; 9 'use strict';
10 10
11 /** @const */ 11 /** @const */
12 var BROWSER_SUPPORTS_TLS_CHANNEL_ID = true; 12 var BROWSER_SUPPORTS_TLS_CHANNEL_ID = true;
13 13
14 /** @const */ 14 /** @const */
15 var HTTP_ORIGINS_ALLOWED = false;
16
17 /** @const */
15 var LOG_SAVER_EXTENSION_ID = 'fjajfjhkeibgmiggdfehjplbhmfkialk'; 18 var LOG_SAVER_EXTENSION_ID = 'fjajfjhkeibgmiggdfehjplbhmfkialk';
16 19
17 // Singleton tracking available devices. 20 // Singleton tracking available devices.
18 var gnubbies = new Gnubbies(); 21 var gnubbies = new Gnubbies();
19 HidGnubbyDevice.register(gnubbies); 22 HidGnubbyDevice.register(gnubbies);
20 UsbGnubbyDevice.register(gnubbies); 23 UsbGnubbyDevice.register(gnubbies);
21 24
22 var TIMER_FACTORY = new CountdownTimerFactory(); 25 var TIMER_FACTORY = new CountdownTimerFactory();
23 26
24 var FACTORY_REGISTRY = new FactoryRegistry( 27 var FACTORY_REGISTRY = new FactoryRegistry(
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if (originalUtilFmt_) { 100 if (originalUtilFmt_) {
98 UTIL_fmt = originalUtilFmt_; 101 UTIL_fmt = originalUtilFmt_;
99 originalUtilFmt_ = null; 102 originalUtilFmt_ = null;
100 } 103 }
101 } 104 }
102 return false; 105 return false;
103 } 106 }
104 107
105 /** @private */ 108 /** @private */
106 var originalUtilFmt_ = null; 109 var originalUtilFmt_ = null;
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/cryptotoken/enroller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698