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

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

Issue 2776993002: [MD Bookmarks] Persist collapsed folders between page loads. (Closed)
Patch Set: Created 3 years, 9 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/folder_node.js
diff --git a/chrome/browser/resources/md_bookmarks/folder_node.js b/chrome/browser/resources/md_bookmarks/folder_node.js
index 40fb4a9db70188c90ac1882cdc4869b27e23b477..1b7792fa6091f12343fcc5cd9d6b5df352122e9e 100644
--- a/chrome/browser/resources/md_bookmarks/folder_node.js
+++ b/chrome/browser/resources/md_bookmarks/folder_node.js
@@ -79,6 +79,8 @@ Polymer({
toggleFolder_: function(e) {
this.dispatch(
bookmarks.actions.changeFolderOpen(this.item_.id, this.isClosed_));
+ window.localStorage[LOCAL_STORAGE_CLOSED_FOLDERS_KEY] =
tsergeant 2017/03/29 04:43:24 I'm a bit torn about where this should live. On on
calamity 2017/03/30 03:16:04 Yeah, basically because this is where it changes.
+ JSON.stringify(this.getState().closedFolders);
e.stopPropagation();
},

Powered by Google App Engine
This is Rietveld 408576698