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/enhanced_bookmark_model.h | |
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/enhanced_bookmark_model.h')
-rw-r--r-- | components/enhanced_bookmarks/enhanced_bookmark_model.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/enhanced_bookmarks/enhanced_bookmark_model.h b/components/enhanced_bookmarks/enhanced_bookmark_model.h index d708d8d..4196f64 100644 --- a/components/enhanced_bookmarks/enhanced_bookmark_model.h +++ b/components/enhanced_bookmarks/enhanced_bookmark_model.h @@ -149,6 +149,8 @@ class EnhancedBookmarkModel : public KeyedService, int old_index, const BookmarkNode* node, const std::set<GURL>& removed_urls) override; + void BookmarkNodeChanged(BookmarkModel* model, + const BookmarkNode* node) override; void OnWillChangeBookmarkMetaInfo(BookmarkModel* model, const BookmarkNode* node) override; void BookmarkMetaInfoChanged(BookmarkModel* model, |