Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3697)

Unified Diff: chrome/browser/resources/md_bookmarks/store_client.js

Issue 2813503002: MD Bookmarks: Prevent navigating to invalid folders (Closed)
Patch Set: handleAction -> dispatch Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_bookmarks/store.js ('k') | chrome/browser/resources/md_bookmarks/types.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « chrome/browser/resources/md_bookmarks/store.js ('k') | chrome/browser/resources/md_bookmarks/types.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698