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

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

Issue 305973004: BookmarkClient can add extra nodes to BookmarkModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/test/test_bookmark_client.cc
diff --git a/components/bookmarks/test/test_bookmark_client.cc b/components/bookmarks/test/test_bookmark_client.cc
index 6151032d9661bc01101eddbb60cf7a5d40791f24..4568f9f30f665a75037d14d2d9f271ed668a2a16 100644
--- a/components/bookmarks/test/test_bookmark_client.cc
+++ b/components/bookmarks/test/test_bookmark_client.cc
@@ -20,8 +20,10 @@ scoped_ptr<BookmarkModel> TestBookmarkClient::CreateModel(bool index_urls) {
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;
+ node_type == BookmarkNode::MOBILE ||
+ node_type == BookmarkNode::MANAGED);
+ return node_type != BookmarkNode::MOBILE &&
+ node_type != BookmarkNode::MANAGED;
}
void TestBookmarkClient::RecordAction(const base::UserMetricsAction& action) {

Powered by Google App Engine
This is Rietveld 408576698