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

Unified Diff: components/bookmarks/core/test/test_bookmark_client.cc

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
« no previous file with comments | « components/bookmarks/core/test/test_bookmark_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/core/test/test_bookmark_client.cc
diff --git a/components/bookmarks/core/test/test_bookmark_client.cc b/components/bookmarks/core/test/test_bookmark_client.cc
index 23107a14a4869a5158a5e7aa43600ed645c2bdb3..6c98398054d632c8ea242b7305aca23e9ad6e33a 100644
--- a/components/bookmarks/core/test/test_bookmark_client.cc
+++ b/components/bookmarks/core/test/test_bookmark_client.cc
@@ -4,7 +4,9 @@
#include "components/bookmarks/core/test/test_bookmark_client.h"
+#include "base/logging.h"
#include "components/bookmarks/core/browser/bookmark_model.h"
+#include "components/bookmarks/core/browser/bookmark_node.h"
#include "components/bookmarks/core/browser/bookmark_storage.h"
namespace test {
@@ -15,6 +17,13 @@ scoped_ptr<BookmarkModel> TestBookmarkClient::CreateModel(bool index_urls) {
return bookmark_model.Pass();
}
+bool TestBookmarkClient::IsPermanentNodeVisible(int node_type) {
+ DCHECK(node_type == BookmarkNode::BOOKMARK_BAR ||
+ node_type == BookmarkNode::OTHER_NODE ||
+ node_type == BookmarkNode::MOBILE);
+ return node_type != BookmarkNode::MOBILE;
+}
+
void TestBookmarkClient::RecordAction(const base::UserMetricsAction& action) {
}
« no previous file with comments | « components/bookmarks/core/test/test_bookmark_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698