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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/injected/loader.js

Issue 2754363003: Do more strict checking when calling into MathJaX (Closed)
Patch Set: Address nits. Created 3 years, 9 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 | « chrome/browser/resources/chromeos/chromevox/chromevox/injected/api.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 goog.require('cvox.ApiImplementation'); 5 goog.require('cvox.ApiImplementation');
6 goog.require('KeyboardHandler'); 6 goog.require('KeyboardHandler');
7 7
8 /** 8 /**
9 * Initializes minimal content script. 9 * Initializes minimal content script.
10 */ 10 */
11 function initMin() { 11 function initMin() {
12 if (cvox.ChromeVox.isChromeOS) { 12 if (cvox.ChromeVox.isChromeOS) {
13 cvox.ApiImplementation.init(); 13 cvox.ApiImplementation.init(true);
14 return; 14 return;
15 } 15 }
16 16
17 if (cvox.ChromeVox.isClassicEnabled_ === undefined) { 17 if (cvox.ChromeVox.isClassicEnabled_ === undefined) {
18 window.setTimeout(function() { 18 window.setTimeout(function() {
19 initMin(); 19 initMin();
20 }, 500); 20 }, 500);
21 return; 21 return;
22 } 22 }
23 23
24 if (cvox.ChromeVox.isClassicEnabled_) 24 if (cvox.ChromeVox.isClassicEnabled_)
25 return; 25 return;
26 26
27 new KeyboardHandler(); 27 new KeyboardHandler();
28 } 28 }
29 29
30 initMin(); 30 initMin();
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/chromevox/injected/api.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698