| Index: chrome/browser/resources/md_bookmarks/toolbar.js
|
| diff --git a/chrome/browser/resources/md_bookmarks/toolbar.js b/chrome/browser/resources/md_bookmarks/toolbar.js
|
| index 5b80c74fbef76ca922d66d67cd7c0c724778a044..1d13074bc676ba788f7b9011995ba4843088fd3c 100644
|
| --- a/chrome/browser/resources/md_bookmarks/toolbar.js
|
| +++ b/chrome/browser/resources/md_bookmarks/toolbar.js
|
| @@ -5,6 +5,10 @@
|
| Polymer({
|
| is: 'bookmarks-toolbar',
|
|
|
| + behaviors: [
|
| + bookmarks.StoreClient,
|
| + ],
|
| +
|
| properties: {
|
| searchTerm: {
|
| type: String,
|
| @@ -12,6 +16,12 @@ Polymer({
|
| },
|
| },
|
|
|
| + attached: function() {
|
| + this.observe('searchTerm', function(state) {
|
| + return state.search.term;
|
| + });
|
| + },
|
| +
|
| /** @return {CrToolbarSearchFieldElement} */
|
| get searchField() {
|
| return /** @type {CrToolbarElement} */ (this.$$('cr-toolbar'))
|
| @@ -66,7 +76,7 @@ Polymer({
|
| */
|
| onSearchChanged_: function(e) {
|
| var searchTerm = /** @type {string} */ (e.detail);
|
| - this.fire('search-term-changed', searchTerm);
|
| + this.dispatch(bookmarks.actions.setSearchTerm(searchTerm));
|
| },
|
|
|
| /** @private */
|
|
|