| 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..40b751a90e38f9f8d23abf0b1ea2515b3f03b484 100644
|
| --- a/chrome/browser/resources/md_bookmarks/store_client.js
|
| +++ b/chrome/browser/resources/md_bookmarks/store_client.js
|
| @@ -62,10 +62,19 @@ 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);
|
| + bookmarks.Store.getInstance().dispatch(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().dispatchAsync(action);
|
| },
|
|
|
| /** @param {string} newState */
|
|
|