| Index: chrome/browser/resources/options/search_engine_manager_engine_list.js
|
| diff --git a/chrome/browser/resources/options/search_engine_manager_engine_list.js b/chrome/browser/resources/options/search_engine_manager_engine_list.js
|
| index 7284ae9ca3af9400ce12a94b3f6e854ae31c6312..91075b4b57c4a165cc82c9b111221985549f161f 100644
|
| --- a/chrome/browser/resources/options/search_engine_manager_engine_list.js
|
| +++ b/chrome/browser/resources/options/search_engine_manager_engine_list.js
|
| @@ -22,7 +22,7 @@ var SearchEngine;
|
|
|
| cr.define('options.search_engines', function() {
|
| /** @const */ var ControlledSettingIndicator =
|
| - options.ControlledSettingIndicator;
|
| + options.ControlledSettingIndicator;
|
| /** @const */ var InlineEditableItemList = options.InlineEditableItemList;
|
| /** @const */ var InlineEditableItem = options.InlineEditableItem;
|
| /** @const */ var ListSelectionController = cr.ui.ListSelectionController;
|
| @@ -173,13 +173,14 @@ cr.define('options.search_engines', function() {
|
| }
|
|
|
| // Do final adjustment to the input fields.
|
| - this.nameField_ = /** @type {HTMLElement} */(
|
| - nameEl.querySelector('input'));
|
| + this.nameField_ =
|
| + /** @type {HTMLElement} */ (nameEl.querySelector('input'));
|
| // The editable field uses the raw name, not the display name.
|
| this.nameField_.value = engine.name;
|
| - this.keywordField_ = /** @type {HTMLElement} */(
|
| - keywordEl.querySelector('input'));
|
| - this.urlField_ = /** @type {HTMLElement} */(urlEl.querySelector('input'));
|
| + this.keywordField_ =
|
| + /** @type {HTMLElement} */ (keywordEl.querySelector('input'));
|
| + this.urlField_ =
|
| + /** @type {HTMLElement} */ (urlEl.querySelector('input'));
|
|
|
| if (engine.urlLocked)
|
| this.urlField_.disabled = true;
|
| @@ -200,7 +201,7 @@ cr.define('options.search_engines', function() {
|
| this.setFocusableColumnIndex(this.closeButtonElement, 4);
|
|
|
| var fields = [this.nameField_, this.keywordField_, this.urlField_];
|
| - for (var i = 0; i < fields.length; i++) {
|
| + for (var i = 0; i < fields.length; i++) {
|
| fields[i].oninput = this.startFieldValidation_.bind(this);
|
| }
|
|
|
| @@ -218,10 +219,12 @@ cr.define('options.search_engines', function() {
|
| // CoreOptionsHandler::CreateValueForPref() does.
|
| var event = new Event(this.contentType);
|
| if (engine.extension) {
|
| - event.value = { controlledBy: 'extension',
|
| - extension: engine.extension };
|
| + event.value = {
|
| + controlledBy: 'extension',
|
| + extension: engine.extension
|
| + };
|
| } else {
|
| - event.value = { controlledBy: 'policy' };
|
| + event.value = {controlledBy: 'policy'};
|
| }
|
| indicator.handlePrefChange(event);
|
| this.appendChild(indicator);
|
| @@ -237,8 +240,8 @@ cr.define('options.search_engines', function() {
|
| get hasBeenEdited() {
|
| var engine = this.searchEngine_;
|
| return this.nameField_.value != engine.name ||
|
| - this.keywordField_.value != engine.keyword ||
|
| - this.urlField_.value != engine.url;
|
| + this.keywordField_.value != engine.keyword ||
|
| + this.urlField_.value != engine.url;
|
| },
|
|
|
| /**
|
| @@ -283,9 +286,9 @@ cr.define('options.search_engines', function() {
|
| * @return {Array} The current input field values.
|
| */
|
| getInputFieldValues_: function() {
|
| - return [this.nameField_.value,
|
| - this.keywordField_.value,
|
| - this.urlField_.value];
|
| + return [
|
| + this.nameField_.value, this.keywordField_.value, this.urlField_.value
|
| + ];
|
| },
|
|
|
| /**
|
| @@ -371,9 +374,6 @@ cr.define('options.search_engines', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - SearchEngineList: SearchEngineList
|
| - };
|
| + return {SearchEngineList: SearchEngineList};
|
|
|
| });
|
| -
|
|
|