| Index: chrome/browser/resources/md_history/history_toolbar.js
|
| diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js
|
| index 2e514abada67910df4a93420b6aaef78ea092b73..13f9c35d6c704424fc288305e4f4d533a484c1ca 100644
|
| --- a/chrome/browser/resources/md_history/history_toolbar.js
|
| +++ b/chrome/browser/resources/md_history/history_toolbar.js
|
| @@ -2,22 +2,6 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -/**
|
| - * @constructor
|
| - * @implements {SearchFieldDelegate}
|
| - * @param {!HistoryToolbarElement} toolbar This history-toolbar.
|
| - */
|
| -function ToolbarSearchFieldDelegate(toolbar) {
|
| - this.toolbar_ = toolbar;
|
| -}
|
| -
|
| -ToolbarSearchFieldDelegate.prototype = {
|
| - /** @override */
|
| - onSearchTermSearch: function(searchTerm) {
|
| - this.toolbar_.onSearch(searchTerm);
|
| - }
|
| -};
|
| -
|
| Polymer({
|
| is: 'history-toolbar',
|
| properties: {
|
| @@ -97,16 +81,11 @@ Polymer({
|
| },
|
|
|
| /**
|
| - * @param {string} searchTerm
|
| + * @param {!CustomEvent} event
|
| + * @private
|
| */
|
| - onSearch: function(searchTerm) {
|
| - this.searchTerm = searchTerm;
|
| - },
|
| -
|
| - attached: function() {
|
| - this.searchFieldDelegate_ = new ToolbarSearchFieldDelegate(this);
|
| - /** @type {!CrToolbarElement} */(this.$['main-toolbar']).getSearchField()
|
| - .setDelegate(this.searchFieldDelegate_);
|
| + onSearchChanged_: function(event) {
|
| + this.searchTerm = /** @type {string} */ (event.detail);
|
| },
|
|
|
| onClearSelectionTap_: function() {
|
|
|