diff options
author | danduong <danduong@chromium.org> | 2014-10-30 11:21:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-30 18:21:34 +0000 |
commit | 2d0c8cfc2d67eea473132d8582430c21529ce897 (patch) | |
tree | 75bc1b71022497bf3c5b6ddc873c1c60733e847a /components/enhanced_bookmarks/bookmark_server_cluster_service.cc | |
parent | a3fe70262d92dbc36b32dbedac50930eb7920234 (diff) | |
download | chromium_src-2d0c8cfc2d67eea473132d8582430c21529ce897.zip chromium_src-2d0c8cfc2d67eea473132d8582430c21529ce897.tar.gz chromium_src-2d0c8cfc2d67eea473132d8582430c21529ce897.tar.bz2 |
Reduce frequency of requesting bookmark clusters.
Currently, we fetch for bookmarks on SyncCycleCompleted. We
actually just want to trigger a request for clusters when
bookmarks change due to a SyncCycle. By watching for
ExtensiveChanges from the BookmarksModel and saving some
state, we can more accurately determine this.
BUG=424254
Review URL: https://codereview.chromium.org/682933002
Cr-Commit-Position: refs/heads/master@{#302111}
Diffstat (limited to 'components/enhanced_bookmarks/bookmark_server_cluster_service.cc')
-rw-r--r-- | components/enhanced_bookmarks/bookmark_server_cluster_service.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/enhanced_bookmarks/bookmark_server_cluster_service.cc b/components/enhanced_bookmarks/bookmark_server_cluster_service.cc index 0d85539..2eeb45e 100644 --- a/components/enhanced_bookmarks/bookmark_server_cluster_service.cc +++ b/components/enhanced_bookmarks/bookmark_server_cluster_service.cc @@ -198,6 +198,11 @@ void BookmarkServerClusterService::EnhancedBookmarkRemoved( // filtered in ClustersForBookmark() this is not strictly necessary. } +void BookmarkServerClusterService::EnhancedBookmarkNodeChanged( + const BookmarkNode* node) { + // Nothing to do. +} + void BookmarkServerClusterService::EnhancedBookmarkAllUserNodesRemoved() { if (!cluster_data_.empty()) { ClusterMap empty; |