| Index: chrome/browser/resources/md_bookmarks/store_client.js
|
| diff --git a/chrome/browser/resources/md_bookmarks/store_client.js b/chrome/browser/resources/md_bookmarks/store_client.js
|
| index 6cea153d2f3231cbf5817df3b4a1425e45ad4a8a..d9442ec5c81a478459bb4de1c5bb87de2523b72d 100644
|
| --- a/chrome/browser/resources/md_bookmarks/store_client.js
|
| +++ b/chrome/browser/resources/md_bookmarks/store_client.js
|
| @@ -62,12 +62,21 @@ cr.define('bookmarks', function() {
|
| /**
|
| * Helper to dispatch an action to the store, which will update the store
|
| * data and then (possibly) flow through to the UI.
|
| - * @param {Action} action
|
| + * @param {?Action} action
|
| */
|
| dispatch: function(action) {
|
| bookmarks.Store.getInstance().handleAction(action);
|
| },
|
|
|
| + /**
|
| + * Helper to dispatch a DeferredAction to the store, which will
|
| + * asynchronously perform updates to the store data and UI.
|
| + * @param {DeferredAction} action
|
| + */
|
| + dispatchAsync: function(action) {
|
| + bookmarks.Store.getInstance().handleDeferredAction(action);
|
| + },
|
| +
|
| /** @param {string} newState */
|
| onStateChanged: function(newState) {
|
| this.watches_.forEach(function(watch) {
|
|
|