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

Unified Diff: chrome/browser/resources/md_extensions/service.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_extensions/service.js
diff --git a/chrome/browser/resources/md_extensions/service.js b/chrome/browser/resources/md_extensions/service.js
index 08abe7d66e80d826a5a477496c57280d29b2aec5..fba74ba685f9e3d0c5ccf4a291792d92c361e9cb 100644
--- a/chrome/browser/resources/md_extensions/service.js
+++ b/chrome/browser/resources/md_extensions/service.js
@@ -28,8 +28,7 @@ cr.define('extensions', function() {
this.manager_.errorPage.delegate = this;
var keyboardShortcuts = this.manager_.keyboardShortcuts;
keyboardShortcuts.addEventListener(
- 'shortcut-updated',
- this.onExtensionCommandUpdated_.bind(this));
+ 'shortcut-updated', this.onExtensionCommandUpdated_.bind(this));
keyboardShortcuts.addEventListener(
'shortcut-capture-started',
this.onShortcutCaptureChanged_.bind(this, true));
@@ -43,20 +42,20 @@ cr.define('extensions', function() {
chrome.developerPrivate.getExtensionsInfo(
{includeDisabled: true, includeTerminated: true},
function(extensions) {
- /** @private {Array<chrome.developerPrivate.ExtensionInfo>} */
- this.extensions_ = extensions;
- for (let extension of extensions)
- this.manager_.addItem(extension);
+ /** @private {Array<chrome.developerPrivate.ExtensionInfo>} */
+ this.extensions_ = extensions;
+ for (let extension of extensions)
+ this.manager_.addItem(extension);
- var id = new URLSearchParams(location.search).get('id');
- if (id) {
- var data = this.extensions_.find(function(e) {
- return e.id == id;
- });
- if (data)
- this.manager_.showItemDetails(data);
- }
- }.bind(this));
+ var id = new URLSearchParams(location.search).get('id');
+ if (id) {
+ var data = this.extensions_.find(function(e) {
+ return e.id == id;
+ });
+ if (data)
+ this.manager_.showItemDetails(data);
+ }
+ }.bind(this));
chrome.developerPrivate.getProfileConfiguration(
this.onProfileStateChanged_.bind(this));
},
@@ -122,13 +121,13 @@ cr.define('extensions', function() {
return new Promise(function(resolve, reject) {
chrome.developerPrivate.choosePath(
selectType, fileType, function(path) {
- if (chrome.runtime.lastError &&
- chrome.runtime.lastError != 'File selection was canceled.') {
- reject(chrome.runtime.lastError);
- } else {
- resolve(path || '');
- }
- });
+ if (chrome.runtime.lastError &&
+ chrome.runtime.lastError != 'File selection was canceled.') {
+ reject(chrome.runtime.lastError);
+ } else {
+ resolve(path || '');
+ }
+ });
});
},
« no previous file with comments | « chrome/browser/resources/md_extensions/pack_dialog.js ('k') | chrome/browser/resources/md_extensions/shortcut_input.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698