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

Unified Diff: chrome/browser/resources/extensions/extension_loader.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (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/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};
});

Powered by Google App Engine
This is Rietveld 408576698