Lines Matching refs:GetBookmarkModel
386 BookmarkModel* GetBookmarkModel(int index) {
391 return GetBookmarkModel(index)->bookmark_bar_node();
395 return GetBookmarkModel(index)->other_node();
399 return GetBookmarkModel(index)->mobile_node();
424 if (GetBookmarkModel(profile)->GetNodeByID(parent->id()) != parent) {
429 const BookmarkNode* result = GetBookmarkModel(profile)->
438 FindNodeInVerifier(GetBookmarkModel(profile), parent, &v_parent);
465 if (GetBookmarkModel(profile)->GetNodeByID(parent->id()) != parent) {
471 GetBookmarkModel(profile)->AddFolder(parent, index, WideToUTF16(title));
480 FindNodeInVerifier(GetBookmarkModel(profile), parent, &v_parent);
495 ASSERT_EQ(GetBookmarkModel(profile)->GetNodeByID(node->id()), node)
500 FindNodeInVerifier(GetBookmarkModel(profile), node, &v_node);
503 GetBookmarkModel(profile)->SetTitle(node, WideToUTF16(new_title));
511 ASSERT_EQ(GetBookmarkModel(profile)->GetNodeByID(node->id()), node)
521 FindNodeInVerifier(GetBookmarkModel(profile), node, &v_node);
531 if (GetBookmarkModel(profile)->GetNodeByID(node->id()) != node) {
538 FindNodeInVerifier(GetBookmarkModel(profile), node, &v_node);
543 GetBookmarkModel(profile)->SetURL(node, new_url);
551 ASSERT_EQ(GetBookmarkModel(profile)->GetNodeByID(node->id()), node)
557 FindNodeInVerifier(GetBookmarkModel(profile), new_parent, &v_new_parent);
558 FindNodeInVerifier(GetBookmarkModel(profile), node, &v_node);
561 GetBookmarkModel(profile)->Move(node, new_parent, index);
567 ASSERT_EQ(GetBookmarkModel(profile)->GetNodeByID(parent->id()), parent)
572 FindNodeInVerifier(GetBookmarkModel(profile), parent, &v_parent);
576 GetBookmarkModel(profile)->Remove(parent, index);
589 GetBookmarkModel(profile)->RemoveAll();
593 ASSERT_EQ(GetBookmarkModel(profile)->GetNodeByID(parent->id()), parent)
598 FindNodeInVerifier(GetBookmarkModel(profile), parent, &v_parent);
601 GetBookmarkModel(profile)->SortChildren(parent);
605 ASSERT_EQ(GetBookmarkModel(profile)->GetNodeByID(parent->id()), parent)
623 GetBookmarkModel(profile));
642 return BookmarkModelsMatch(GetBookmarkModel(profile_a),
643 GetBookmarkModel(profile_b));
663 GetBookmarkModel(profile)->root_node());
669 GetBookmarkModel(profile)->GetNodesByURL(node->url(), &nodes);
685 GetBookmarkModel(profile)->GetNodesByURL(url, &nodes);
691 GetBookmarkModel(profile)->GetNodesByURL(url, &nodes);
699 return CountNodesWithTitlesMatching(GetBookmarkModel(profile),
705 return CountNodesWithTitlesMatching(GetBookmarkModel(profile),