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

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

Issue 2813503002: MD Bookmarks: Prevent navigating to invalid folders (Closed)
Patch Set: Review comments 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
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) {

Powered by Google App Engine
This is Rietveld 408576698