| Index: chrome/browser/resources/options/search_engine_manager.js
|
| diff --git a/chrome/browser/resources/options/search_engine_manager.js b/chrome/browser/resources/options/search_engine_manager.js
|
| index 9a99f574ead3c52fbb316ded650ddb5066d40586..d0b50f8abdfa06003d3776ae45a977cceca07551 100644
|
| --- a/chrome/browser/resources/options/search_engine_manager.js
|
| +++ b/chrome/browser/resources/options/search_engine_manager.js
|
| @@ -32,24 +32,6 @@ cr.define('options', function() {
|
| var selectionModel = new ListSingleSelectionModel;
|
| this.list_.selectionModel = selectionModel;
|
| this.list_.autoExpands = true;
|
| -
|
| - selectionModel.addEventListener('change',
|
| - this.selectionChanged_.bind(this));
|
| -
|
| - var self = this;
|
| - // This is a temporary hack to allow the "Make Default" button to
|
| - // continue working despite the new list behavior of removing selection
|
| - // on focus loss.
|
| - // Once drag-and-drop is supported, so items can be moved into the default
|
| - // section, this button will go away entirely.
|
| - $('makeDefaultSearchEngineButton').onmousedown = function(event) {
|
| - self.pendingDefaultEngine_ = self.list_.selectedItem;
|
| - };
|
| - $('makeDefaultSearchEngineButton').onclick = function(event) {
|
| - chrome.send('managerSetDefaultSearchEngine',
|
| - [self.pendingDefaultEngine_['modelIndex']]);
|
| - self.pendingDefaultEngine_ = null;
|
| - };
|
| },
|
|
|
| /**
|
| @@ -64,17 +46,6 @@ cr.define('options', function() {
|
| });
|
| this.list_.dataModel = model;
|
| },
|
| -
|
| - /**
|
| - * Callback from the selection model when the selection changes.
|
| - * @private
|
| - * @param {!cr.Event} e Event with change info.
|
| - */
|
| - selectionChanged_: function(e) {
|
| - var engine = this.list_.selectedItem || this.pendingDefaultEngine_;
|
| - $('makeDefaultSearchEngineButton').disabled =
|
| - !(engine && engine['canBeDefault']);
|
| - },
|
| };
|
|
|
| SearchEngineManager.updateSearchEngineList = function(engineList) {
|
|
|