Home
last modified time | relevance | path

Searched refs:bookmark_model_ (Results 1 – 25 of 34) sorted by relevance

12

/external/chromium_org/chrome/browser/history/android/
Dbookmark_model_sql_handler_unittest.cc32 bookmark_model_(NULL), in BookmarkModelSQLHandlerTest()
49 bookmark_model_ = BookmarkModelFactory::GetForProfile(testing_profile); in SetUp()
50 test::WaitForBookmarkModelToLoad(bookmark_model_); in SetUp()
51 ASSERT_TRUE(bookmark_model_); in SetUp()
71 BookmarkModel* bookmark_model_; member in history::BookmarkModelSQLHandlerTest
90 bookmark_model_->GetNodesByURL(row.url(), &nodes); in TEST_F()
95 EXPECT_EQ(bookmark_model_->mobile_node()->id(), parent->id()); in TEST_F()
105 row.set_parent_id(bookmark_model_->other_node()->id()); in TEST_F()
111 bookmark_model_->GetNodesByURL(row.url(), &nodes); in TEST_F()
142 bookmark_model_->GetBookmarks(&bookmarks); in TEST_F()
[all …]
Dandroid_provider_backend_unittest.cc114 bookmark_model_(NULL), in AndroidProviderBackendTest()
130 bookmark_model_ = BookmarkModelFactory::GetForProfile(testing_profile); in SetUp()
131 test::WaitForBookmarkModelToLoad(bookmark_model_); in SetUp()
132 ASSERT_TRUE(bookmark_model_); in SetUp()
150 const BookmarkNode* mobile_node = bookmark_model_->mobile_node(); in AddBookmark()
152 ASSERT_TRUE(bookmark_model_->AddURL(mobile_node, 0, base::string16(), url)); in AddBookmark()
198 BookmarkModel* bookmark_model_; member in history::AndroidProviderBackendTest
231 ASSERT_TRUE(bookmark_model_->AddURL(bookmark_model_->bookmark_bar_node(), 0, in TEST_F()
238 new AndroidProviderBackendDelegate(), bookmark_model_); in TEST_F()
274 &thumbnail_db_, bookmark_model_, &delegate_)); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/bookmarks/
Dbookmark_tag_model.cc88 : bookmark_model_(bookmark_model), in BookmarkTagModel()
92 bookmark_model_->AddObserver(this); in BookmarkTagModel()
93 if (bookmark_model_->loaded()) in BookmarkTagModel()
98 if (bookmark_model_) in ~BookmarkTagModel()
99 bookmark_model_->RemoveObserver(this); in ~BookmarkTagModel()
113 DCHECK(bookmark_model_); in BeginExtensiveChanges()
114 bookmark_model_->BeginExtensiveChanges(); in BeginExtensiveChanges()
118 DCHECK(bookmark_model_); in EndExtensiveChanges()
119 bookmark_model_->EndExtensiveChanges(); in EndExtensiveChanges()
123 DCHECK(bookmark_model_); in IsDoingExtensiveChanges()
[all …]
Dbookmark_expanded_state_tracker.cc17 : bookmark_model_(bookmark_model), in BookmarkExpandedStateTracker()
32 if (!bookmark_model_->loaded()) in GetExpandedNodes()
49 (node = bookmark_model_->GetNodeByID(node_id)) != NULL && in GetExpandedNodes()
Dbookmark_expanded_state_tracker.h46 BookmarkModel* bookmark_model_; variable
/external/chromium_org/chrome/browser/sync/glue/
Dbookmark_data_type_controller.cc31 bookmark_model_(NULL), in BookmarkDataTypeController()
50 bookmark_model_->RemoveObserver(this); in Observe()
58 if (installed_bookmark_observer_ && bookmark_model_) { in ~BookmarkDataTypeController()
60 bookmark_model_->RemoveObserver(this); in ~BookmarkDataTypeController()
65 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in StartModels()
67 bookmark_model_->AddObserver(this); in StartModels()
114 if (!bookmark_model_ || !bookmark_model_->loaded()) in DependentsLoaded()
Dbookmark_model_associator.cc200 : bookmark_model_(bookmark_model), in BookmarkModelAssociator()
207 DCHECK(bookmark_model_); in BookmarkModelAssociator()
218 DCHECK(bookmark_model_->loaded()); in UpdatePermanentNodeVisibility()
220 bookmark_model_->SetPermanentNodeVisible( in UpdatePermanentNodeVisibility()
222 id_map_.find(bookmark_model_->mobile_node()->id()) != id_map_.end()); in UpdatePermanentNodeVisibility()
381 new ScopedAssociationUpdater(bookmark_model_)); in AssociateModels()
407 DCHECK(bookmark_model_->loaded()); in BuildAssociations()
411 if (!AssociateTaggedPermanentNode(bookmark_model_->bookmark_bar_node(), in BuildAssociations()
419 if (!AssociateTaggedPermanentNode(bookmark_model_->other_node(), in BuildAssociations()
427 if (!AssociateTaggedPermanentNode(bookmark_model_->mobile_node(), in BuildAssociations()
[all …]
Dbookmark_change_processor.cc50 bookmark_model_(NULL), in BookmarkChangeProcessor()
58 if (bookmark_model_) in ~BookmarkChangeProcessor()
59 bookmark_model_->RemoveObserver(this); in ~BookmarkChangeProcessor()
66 DCHECK(!bookmark_model_); in StartImpl()
67 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile); in StartImpl()
68 DCHECK(bookmark_model_->loaded()); in StartImpl()
69 bookmark_model_->AddObserver(this); in StartImpl()
134 UpdateTransactionVersion(new_version, bookmark_model_, in RemoveSyncNodeHierarchy()
143 RemoveAllChildNodes(&trans, bookmark_model_->bookmark_bar_node()->id()); in RemoveAllSyncNodes()
144 RemoveAllChildNodes(&trans, bookmark_model_->other_node()->id()); in RemoveAllSyncNodes()
[all …]
Dbookmark_data_type_controller_unittest.cc105 bookmark_model_ = static_cast<BookmarkModel*>( in CreateBookmarkModel()
108 test::WaitForBookmarkModelToLoad(bookmark_model_); in CreateBookmarkModel()
110 bookmark_model_ = static_cast<BookmarkModel*>( in CreateBookmarkModel()
153 BookmarkModel* bookmark_model_; member in SyncBookmarkDataTypeControllerTest
185 bookmark_model_->Load(profile_.GetIOTaskRunner()); in TEST_F()
186 test::WaitForBookmarkModelToLoad(bookmark_model_); in TEST_F()
Dbookmark_data_type_controller.h54 BookmarkModel* bookmark_model_; variable
/external/chromium_org/chrome/browser/ui/bookmarks/
Dbookmark_tab_helper.cc49 if (bookmark_model_) in ~BookmarkTabHelper()
50 bookmark_model_->RemoveObserver(this); in ~BookmarkTabHelper()
82 bookmark_model_(NULL), in BookmarkTabHelper()
87 bookmark_model_= BookmarkModelFactory::GetForProfile(profile); in BookmarkTabHelper()
88 if (bookmark_model_) in BookmarkTabHelper()
89 bookmark_model_->AddObserver(this); in BookmarkTabHelper()
94 is_starred_ = (bookmark_model_ && in UpdateStarredStateForCurrentURL()
95 bookmark_model_->IsBookmarked(chrome::GetURLToBookmark(web_contents()))); in UpdateStarredStateForCurrentURL()
Drecently_used_folders_combo_model.cc52 : bookmark_model_(model), in RecentlyUsedFoldersComboModel()
54 bookmark_model_->AddObserver(this); in RecentlyUsedFoldersComboModel()
96 bookmark_model_->RemoveObserver(this); in ~RecentlyUsedFoldersComboModel()
211 !bookmark_model_->is_permanent_node(i->node)) { in BookmarkAllNodesRemoved()
232 bookmark_model_->Move(node, new_parent, new_parent->child_count()); in MaybeChangeParent()
Dbookmark_tab_helper.h88 BookmarkModel* bookmark_model_; variable
/external/chromium/chrome/browser/sync/glue/
Dbookmark_model_associator.cc163 : bookmark_model_(bookmark_model), in BookmarkModelAssociator()
169 DCHECK(bookmark_model_); in BookmarkModelAssociator()
333 DCHECK(bookmark_model_->IsLoaded()); in BuildAssociations()
337 if (!AssociateTaggedPermanentNode(bookmark_model_->other_node(), in BuildAssociations()
343 if (!AssociateTaggedPermanentNode(bookmark_model_->GetBookmarkBarNode(), in BuildAssociations()
350 bookmark_model_->GetBookmarkBarNode()->id()); in BuildAssociations()
353 bookmark_model_->other_node()->id()); in BuildAssociations()
389 bookmark_model_->Move(child_node, parent_node, index); in BuildAssociations()
392 &sync_child_node, child_node, bookmark_model_)) { in BuildAssociations()
394 child_node, bookmark_model_, &sync_child_node); in BuildAssociations()
[all …]
Dbookmark_data_type_controller_unittest.cc67 WillOnce(Return(&bookmark_model_)); in SetStartExpectations()
68 EXPECT_CALL(bookmark_model_, IsLoaded()).WillRepeatedly(Return(true)); in SetStartExpectations()
92 BookmarkModelMock bookmark_model_; member in BookmarkDataTypeControllerTest
112 EXPECT_CALL(bookmark_model_, IsLoaded()).WillRepeatedly(Return(false)); in TEST_F()
138 EXPECT_CALL(bookmark_model_, IsLoaded()).WillRepeatedly(Return(false)); in TEST_F()
187 EXPECT_CALL(bookmark_model_, IsLoaded()).WillRepeatedly(Return(false)); in TEST_F()
Dbookmark_change_processor.cc27 bookmark_model_(NULL), in BookmarkChangeProcessor()
36 DCHECK(!bookmark_model_); in StartImpl()
37 bookmark_model_ = profile->GetBookmarkModel(); in StartImpl()
38 DCHECK(bookmark_model_->IsLoaded()); in StartImpl()
39 bookmark_model_->AddObserver(this); in StartImpl()
44 DCHECK(bookmark_model_); in StopImpl()
45 bookmark_model_->RemoveObserver(this); in StopImpl()
46 bookmark_model_ = NULL; in StopImpl()
138 bookmark_model_ = NULL; in BookmarkModelBeingDeleted()
372 BookmarkModel* model = bookmark_model_; in ApplyChangesFromSyncModel()
Dbookmark_model_associator.h128 BookmarkModel* bookmark_model_; variable
/external/chromium_org/chrome/browser/ui/webui/ntp/android/
Dbookmarks_handler.cc84 : bookmark_model_(NULL), in BookmarksHandler()
91 if (bookmark_model_) in ~BookmarksHandler()
92 bookmark_model_->RemoveObserver(this); in ~BookmarksHandler()
110 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile); in RegisterMessages()
111 if (bookmark_model_) { in RegisterMessages()
112 bookmark_model_->AddObserver(this); in RegisterMessages()
116 extensive_changes_ = bookmark_model_->IsDoingExtensiveChanges(); in RegisterMessages()
183 bookmark_model_->Remove(parent_node, parent_node->GetIndexOf(node)); in HandleDeleteBookmark()
285 if (bookmark_model_ && folder == bookmark_model_->mobile_node() && in PopulateBookmarksInFolder()
297 if (bookmark_model_ && folder == bookmark_model_->mobile_node() && in PopulateBookmarksInFolder()
[all …]
/external/chromium_org/chrome/browser/android/bookmarks/
Dbookmarks_bridge.cc37 bookmark_model_(NULL), in BookmarksBridge()
41 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in BookmarksBridge()
44 bookmark_model_->AddObserver(this); in BookmarksBridge()
59 if (bookmark_model_->IsDoingExtensiveChanges()) in BookmarksBridge()
60 ExtensiveBookmarkChangesBeginning(bookmark_model_); in BookmarksBridge()
64 bookmark_model_->RemoveObserver(this); in ~BookmarksBridge()
115 if (folder == bookmark_model_->mobile_node() && in GetBookmarksForFolder()
129 if (folder == bookmark_model_->mobile_node() && in GetBookmarksForFolder()
188 bookmark_model_->Remove(parent_node, parent_node->GetIndexOf(node)); in DeleteBookmark()
237 node = bookmark_model_->GetNodeByID(static_cast<int64>(node_id)); in GetNodeByID()
[all …]
/external/chromium_org/chrome/browser/autocomplete/
Dbookmark_provider.cc31 bookmark_model_(NULL) { in BookmarkProvider()
33 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile); in BookmarkProvider()
66 if (!bookmark_model_) in DoAutocomplete()
97 bookmark_model_->GetBookmarksWithTitlesMatching(input.text(), in DoAutocomplete()
251 bookmark_model_->GetNodesByURL(url, &nodes); in TitleMatchToACMatch()
Dbookmark_provider.h39 bookmark_model_ = bookmark_model; in set_bookmark_model_for_testing()
63 BookmarkModel* bookmark_model_; variable
/external/chromium/chrome/browser/history/
Dhistory_backend_unittest.cc72 HistoryBackendTest() : bookmark_model_(NULL), loaded_(false) {} in HistoryBackendTest()
142 BookmarkModel bookmark_model_; member in history::HistoryBackendTest
157 &bookmark_model_); in SetUp()
285 bookmark_model_.AddURL( in TEST_F()
286 bookmark_model_.GetBookmarkBarNode(), 0, string16(), row1.url()); in TEST_F()
337 EXPECT_TRUE(bookmark_model_.IsBookmarked(row1.url())); in TEST_F()
387 bookmark_model_.SetURLStarred(row1.url(), string16(), true); in TEST_F()
388 bookmark_model_.SetURLStarred(row2.url(), string16(), true); in TEST_F()
407 bookmark_model_.SetURLStarred(row2.url(), string16(), false); in TEST_F()
423 bookmark_model_.SetURLStarred(row1.url(), string16(), false); in TEST_F()
[all …]
Dexpire_history_backend_unittest.cc54 : bookmark_model_(NULL), in ExpireHistoryTest()
57 ALLOW_THIS_IN_INITIALIZER_LIST(expirer_(this, &bookmark_model_)), in ExpireHistoryTest()
89 bookmark_model_.AddURL( in StarURL()
90 bookmark_model_.GetBookmarkBarNode(), 0, string16(), url); in StarURL()
101 BookmarkModel bookmark_model_; member in history::ExpireHistoryTest
581 bookmark_model_.SetURLStarred(url, string16(), false); in TEST_F()
/external/chromium_org/chrome/browser/android/provider/
Dchrome_browser_provider.cc1162 bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_); in ChromeBrowserProvider()
1169 bookmark_model_->AddObserver(this); in ChromeBrowserProvider()
1184 bookmark_model_->RemoveObserver(this); in ~ChromeBrowserProvider()
1204 AddBookmarkTask task(bookmark_model_); in AddBookmark()
1209 RemoveBookmarkTask task(bookmark_model_); in RemoveBookmark()
1224 UpdateBookmarkTask task(bookmark_model_); in UpdateBookmark()
1243 visits, parent_id, &row, bookmark_model_); in AddBookmarkFromAPI()
1325 visits, parent_id, &row, bookmark_model_); in UpdateBookmarkFromAPI()
1483 BookmarkNodeExistsTask task(bookmark_model_); in BookmarkNodeExists()
1496 CreateBookmarksFolderOnceTask task(bookmark_model_); in CreateBookmarksFolderOnce()
[all …]
/external/chromium_org/chrome/browser/history/
Dexpire_history_backend_unittest.cc59 : bookmark_model_(NULL), in ExpireHistoryTest()
62 expirer_(this, &bookmark_model_), in ExpireHistoryTest()
89 bookmark_model_.AddURL( in StarURL()
90 bookmark_model_.bookmark_bar_node(), 0, base::string16(), url); in StarURL()
101 BookmarkModel bookmark_model_; member in history::ExpireHistoryTest
487 bookmark_utils::RemoveAllBookmarks(&bookmark_model_, url); in TEST_F()

12