Skip to content

Commit

Permalink
Add patch to sync history delete directives and history entities toge…
Browse files Browse the repository at this point in the history
…ther
  • Loading branch information
DJAndries committed Oct 6, 2023
1 parent 6696d3f commit 8a58dfb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions patches/components-sync-base-model_type.h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/components/sync/base/model_type.h b/components/sync/base/model_type.h
index 8e423e993701c104d4a669c04a46aaa9beb93cc9..1f482ab406111b7a5859b0b22f8fc963827134b6 100644
--- a/components/sync/base/model_type.h
+++ b/components/sync/base/model_type.h
@@ -379,9 +379,10 @@ constexpr ModelTypeSet HighPriorityUserTypes() {
// low-priority types has been downloaded (which may be a lot of data).
constexpr ModelTypeSet LowPriorityUserTypes() {
return {
- // Downloading History may take a while, but should not block the download
- // of other data types.
- HISTORY,
+ // Directives must be synced after history entities. If
+ // history delete directives are processed before retrieving history upon
+ // initial sync, relevant entries will not be deleted.
+ HISTORY_DELETE_DIRECTIVES,
// User Events should not block or delay commits for other data types.
USER_EVENTS};
}

0 comments on commit 8a58dfb

Please sign in to comment.