| Index: chrome/browser/resources/extensions/extension_loader.js
|
| diff --git a/chrome/browser/resources/extensions/extension_loader.js b/chrome/browser/resources/extensions/extension_loader.js
|
| index 95def83d8bccb227975f4d68eb0deae6ada1a824..a4742de5540bdd5e9cb01ac2a7e8992078b9c769 100644
|
| --- a/chrome/browser/resources/extensions/extension_loader.js
|
| +++ b/chrome/browser/resources/extensions/extension_loader.js
|
| @@ -50,7 +50,7 @@ cr.define('extensions', function() {
|
| * @type {HTMLElement}
|
| * @private
|
| */
|
| - this.path_ = /** @type {HTMLElement} */(
|
| + this.path_ = /** @type {HTMLElement} */ (
|
| this.querySelector('#extension-load-error-path'));
|
|
|
| /**
|
| @@ -58,7 +58,7 @@ cr.define('extensions', function() {
|
| * @type {HTMLElement}
|
| * @private
|
| */
|
| - this.reason_ = /** @type {HTMLElement} */(
|
| + this.reason_ = /** @type {HTMLElement} */ (
|
| this.querySelector('#extension-load-error-reason'));
|
|
|
| /**
|
| @@ -74,7 +74,7 @@ cr.define('extensions', function() {
|
| * @type {HTMLElement}
|
| * @private
|
| */
|
| - this.additional_ = /** @type {HTMLUListElement} */(
|
| + this.additional_ = /** @type {HTMLUListElement} */ (
|
| this.querySelector('#extension-load-error-additional'));
|
| this.additional_.list = this.additional_.getElementsByTagName('ul')[0];
|
|
|
| @@ -85,17 +85,17 @@ cr.define('extensions', function() {
|
| */
|
| this.failures_ = [];
|
|
|
| - this.querySelector('#extension-load-error-retry-button').addEventListener(
|
| - 'click', function(e) {
|
| - chrome.send('extensionLoaderRetry');
|
| - this.remove_();
|
| - }.bind(this));
|
| + this.querySelector('#extension-load-error-retry-button')
|
| + .addEventListener('click', function(e) {
|
| + chrome.send('extensionLoaderRetry');
|
| + this.remove_();
|
| + }.bind(this));
|
|
|
| - this.querySelector('#extension-load-error-give-up-button').
|
| - addEventListener('click', function(e) {
|
| - chrome.send('extensionLoaderIgnoreFailure');
|
| - this.remove_();
|
| - }.bind(this));
|
| + this.querySelector('#extension-load-error-give-up-button')
|
| + .addEventListener('click', function(e) {
|
| + chrome.send('extensionLoaderIgnoreFailure');
|
| + this.remove_();
|
| + }.bind(this));
|
|
|
| chrome.send('extensionLoaderDisplayFailures');
|
| },
|
| @@ -112,14 +112,12 @@ cr.define('extensions', function() {
|
| if (this.failures_.length > 0)
|
| this.failures_[this.failures_.length - 1].listElement.hidden = false;
|
| failures.forEach(function(failure) {
|
| - var listItem = /** @type {HTMLLIElement} */(
|
| - document.createElement('li'));
|
| + var listItem =
|
| + /** @type {HTMLLIElement} */ (document.createElement('li'));
|
| listItem.textContent = failure.path;
|
| this.additional_.list.appendChild(listItem);
|
| - this.failures_.push(new Failure(failure.path,
|
| - failure.error,
|
| - failure.manifest,
|
| - listItem));
|
| + this.failures_.push(new Failure(
|
| + failure.path, failure.error, failure.manifest, listItem));
|
| }.bind(this));
|
| // Hide the last item because the UI is displaying its information.
|
| this.failures_[this.failures_.length - 1].listElement.hidden = true;
|
| @@ -179,7 +177,7 @@ cr.define('extensions', function() {
|
| * @private
|
| */
|
| this.loadError_ = new ExtensionLoadError(
|
| - /** @type {HTMLDivElement} */($('extension-load-error')));
|
| + /** @type {HTMLDivElement} */ ($('extension-load-error')));
|
| }
|
|
|
| cr.addSingletonGetter(ExtensionLoader);
|
| @@ -228,7 +226,5 @@ cr.define('extensions', function() {
|
| ExtensionLoader.getInstance().notifyFailed(failures);
|
| };
|
|
|
| - return {
|
| - ExtensionLoader: ExtensionLoader
|
| - };
|
| + return {ExtensionLoader: ExtensionLoader};
|
| });
|
|
|