-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to sync history delete directives and history entities toge…
…ther
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}; | ||
} |