diff --git a/patches/components-sync-base-model_type.h.patch b/patches/components-sync-base-model_type.h.patch new file mode 100644 index 000000000000..037a2e76330c --- /dev/null +++ b/patches/components-sync-base-model_type.h.patch @@ -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}; + }