| Index: chrome/browser/resources/md_bookmarks/list.js
|
| diff --git a/chrome/browser/resources/md_bookmarks/list.js b/chrome/browser/resources/md_bookmarks/list.js
|
| index 5d16af2d6a3883135262bbe9193dcf7b73b23c02..fdc2a560a975e79d5c24c90241704eaaa422857f 100644
|
| --- a/chrome/browser/resources/md_bookmarks/list.js
|
| +++ b/chrome/browser/resources/md_bookmarks/list.js
|
| @@ -5,12 +5,21 @@
|
| Polymer({
|
| is: 'bookmarks-list',
|
|
|
| + behaviors: [
|
| + bookmarks.StoreClient,
|
| + ],
|
| +
|
| properties: {
|
| - /** @type {BookmarkTreeNode} */
|
| + /** @type {BookmarkNode} */
|
| menuItem_: Object,
|
|
|
| - /** @type {Array<BookmarkTreeNode>} */
|
| - displayedList: Array,
|
| + /** @type {Array<string>} */
|
| + displayedList: {
|
| + type: Array,
|
| + value: function() {
|
| + return [];
|
| + },
|
| + },
|
|
|
| searchTerm: String,
|
| },
|
| @@ -19,6 +28,16 @@ Polymer({
|
| 'open-item-menu': 'onOpenItemMenu_',
|
| },
|
|
|
| + attached: function() {
|
| + this.observe('displayedList', function(state) {
|
| + return bookmarks.util.getDisplayedList(state);
|
| + });
|
| + this.observe('searchTerm', function(state) {
|
| + return state.search.term;
|
| + });
|
| + this.updateFromStore();
|
| + },
|
| +
|
| /**
|
| * @param {Event} e
|
| * @private
|
|
|