| 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 || '');
|
| + }
|
| + });
|
| });
|
| },
|
|
|
|
|