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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
index 79c0168db7c58b15038039cb2c604653a2b6c2bb..9784e63467c6d07f65a421bde23f15c1d758777a 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/init_document.js
@@ -60,16 +60,13 @@ cvox.ChromeVox.isClassicEnabled_ = undefined;
*/
cvox.ChromeVox.recallInit_ = function(reason) {
if (cvox.ChromeVox.initTimeout_ > cvox.ChromeVox.MAX_INIT_TIMEOUT_) {
- window.console.log(reason +
- ' Taking too long - giving up.');
+ window.console.log(reason + ' Taking too long - giving up.');
return;
}
- window.console.log(reason +
- ' Will try again in ' +
- cvox.ChromeVox.initTimeout_ + 'ms');
+ window.console.log(
+ reason + ' Will try again in ' + cvox.ChromeVox.initTimeout_ + 'ms');
cvox.ChromeVox.initTimer_ = window.setTimeout(
- cvox.ChromeVox.initDocument,
- cvox.ChromeVox.initTimeout_);
+ cvox.ChromeVox.initDocument, cvox.ChromeVox.initTimeout_);
cvox.ChromeVox.initTimeout_ *= 2;
};
@@ -97,19 +94,13 @@ cvox.ChromeVox.initDocument = function() {
if (disableContentScript) {
var url = location.href;
url = url.substring(0, url.indexOf('#')) || url;
- cvox.ExtensionBridge.send({
- target: 'next',
- action: 'enableClassicCompatForUrl',
- url: url
- });
+ cvox.ExtensionBridge.send(
+ {target: 'next', action: 'enableClassicCompatForUrl', url: url});
return;
}
- cvox.ExtensionBridge.send({
- target: 'next',
- action: 'getIsClassicEnabled',
- url: location.href
- });
+ cvox.ExtensionBridge.send(
+ {target: 'next', action: 'getIsClassicEnabled', url: location.href});
cvox.ChromeVox.initTimer_ = 0;
var reinitReason;
@@ -120,8 +111,8 @@ cvox.ChromeVox.initDocument = function() {
reinitReason = 'ChromeVox waiting for background page';
}
if (reinitReason) {
- cvox.ChromeVox.recallInit_(reinitReason + ': ' +
- document.location.href + '.');
+ cvox.ChromeVox.recallInit_(
+ reinitReason + ': ' + document.location.href + '.');
return;
}
@@ -133,8 +124,9 @@ cvox.ChromeVox.initDocument = function() {
cvox.ChromeVox.host = cvox.HostFactory.getHost();
if (!cvox.ChromeVox.host.ttsLoaded()) {
- cvox.ChromeVox.recallInit_('ChromeVox not starting; waiting for TTS. ' +
- document.location.href + '.');
+ cvox.ChromeVox.recallInit_(
+ 'ChromeVox not starting; waiting for TTS. ' + document.location.href +
+ '.');
return;
}

Powered by Google App Engine
This is Rietveld 408576698