Commit 0a9aae1b authored by Marc Treib's avatar Marc Treib Committed by Commit Bot

Sync: Add SECURITY_EVENTS to AlwaysPreferredUserTypes

Before this CL, the SECURITY_EVENTS type was enabled only if the
"Sync everything" toggle was on. That doesn't make much sense, and was
never the intention.
This CL adds SECURITY_EVENTS to the AlwaysPreferredUserTypes set, so
it will always be enabled if Sync is on (unless the data type itself
decides that it shouldn't be enabled).

Bug: 993119
Change-Id: I54e5a444dbfaa05647aff740f20b0c8764ceb504
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1751986
Commit-Queue: Markus Heintz <markusheintz@chromium.org>
Auto-Submit: Marc Treib <treib@chromium.org>
Reviewed-by: default avatarMarkus Heintz <markusheintz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#686799}
parent 8a551bc1
......@@ -219,8 +219,8 @@ constexpr ModelTypeSet UserTypes() {
// User types, which are not user-controlled.
constexpr ModelTypeSet AlwaysPreferredUserTypes() {
return ModelTypeSet(DEVICE_INFO, USER_CONSENTS, SUPERVISED_USER_SETTINGS,
SUPERVISED_USER_WHITELISTS);
return ModelTypeSet(DEVICE_INFO, USER_CONSENTS, SECURITY_EVENTS,
SUPERVISED_USER_SETTINGS, SUPERVISED_USER_WHITELISTS);
}
// This is the subset of UserTypes() that have priority over other types. These
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment