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

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

Issue 2823053003: [MD Bookmarks] Remove the bookmarks-sidebar element. (Closed)
Patch Set: rebase, address 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/folder_node.js
diff --git a/chrome/browser/resources/md_bookmarks/folder_node.js b/chrome/browser/resources/md_bookmarks/folder_node.js
index 2800bf00f1799e4faa9737c7eb5e0599db20114e..a6b2e938eacf4047277f5fdd4acb9ed91c86848e 100644
--- a/chrome/browser/resources/md_bookmarks/folder_node.js
+++ b/chrome/browser/resources/md_bookmarks/folder_node.js
@@ -64,6 +64,11 @@ Polymer({
return this.$.container;
},
+ /** @return {boolean} */
+ isTopLevelFolder_: function() {
+ return this.depth == 0;
+ },
+
/**
* @private
* @return {string}
@@ -133,6 +138,6 @@ Polymer({
* @return {boolean}
*/
isRootFolder_: function() {
- return this.depth == 0;
+ return this.itemId == ROOT_NODE_ID;
},
});
« no previous file with comments | « chrome/browser/resources/md_bookmarks/folder_node.html ('k') | chrome/browser/resources/md_bookmarks/sidebar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698