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

Unified Diff: chrome/browser/sync/glue/bookmark_model_associator.h

Issue 11533008: Use delete journal to remove bookmarks that are already deleted in sync model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/sync/glue/bookmark_model_associator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/bookmark_model_associator.h
diff --git a/chrome/browser/sync/glue/bookmark_model_associator.h b/chrome/browser/sync/glue/bookmark_model_associator.h
index 541a54a3b72c8a41961d1f2ca7e703a11f0d5af7..659af2e94a758c6b95a4ee57aedf4aff830eb287 100644
--- a/chrome/browser/sync/glue/bookmark_model_associator.h
+++ b/chrome/browser/sync/glue/bookmark_model_associator.h
@@ -22,6 +22,7 @@ class BookmarkNode;
namespace syncer {
class BaseNode;
+class BaseTransaction;
struct UserShare;
}
@@ -118,6 +119,10 @@ class BookmarkModelAssociator
syncer::SyncMergeResult* local_merge_result,
syncer::SyncMergeResult* syncer_merge_result);
+ // Removes bookmark nodes whose corresponding sync nodes have been deleted
+ // according to sync delete journals. Return number of deleted bookmarks.
+ int64 ApplyDeletesFromSyncJournal(syncer::BaseTransaction* trans);
+
// Associate a top-level node of the bookmark model with a permanent node in
// the sync domain. Such permanent nodes are identified by a tag that is
// well known to the server and the client, and is unique within a particular
« no previous file with comments | « no previous file | chrome/browser/sync/glue/bookmark_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698