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

Unified Diff: components/bookmarks/core/browser/bookmark_client.h

Issue 265853002: Allow embedder to force visibility of permanent nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase & fix BookmarkModelTest.NodeVisibility Created 6 years, 7 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: components/bookmarks/core/browser/bookmark_client.h
diff --git a/components/bookmarks/core/browser/bookmark_client.h b/components/bookmarks/core/browser/bookmark_client.h
index e272ab0290b6a14c04a74fcbde4d7ada54966be4..35ac50976649ad86965cc499e2432ca1cfc5ddbf 100644
--- a/components/bookmarks/core/browser/bookmark_client.h
+++ b/components/bookmarks/core/browser/bookmark_client.h
@@ -62,6 +62,10 @@ class BookmarkClient {
const NodeSet& nodes,
NodeTypedCountPairs* node_typed_count_pairs);
+ // Returns whether the embedder wants permanent node of type |node_type|
+ // to always be visible or to only show them when not empty.
+ virtual bool IsPermanentNodeVisible(int node_type) = 0;
+
// Wrapper around RecordAction defined in base/metrics/user_metrics.h
// that ensure that the action is posted from the correct thread.
virtual void RecordAction(const base::UserMetricsAction& action) = 0;
« no previous file with comments | « chrome/browser/sync/glue/bookmark_model_associator.cc ('k') | components/bookmarks/core/browser/bookmark_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698