[StopSyncInPausedState] Clear UserEvent data when sync is stopped
With disabled kStopSyncInPausedState UserEvent data isn't recorded due to UserEventModelTypeController::GetPreconditionState(), but it doesn't work if sync completely stopped. This CL adds UserEventModelTypeController::Stop() similar to what we have for autofill datatypes, which treats STOP_SYNC as DISABLE_SYNC. The behavior already covered by SingleClientUserEventsSyncTest.ShouldNotUploadInSyncPausedState. Bug: 906995 Change-Id: I2a3e68ca91082a6933ca3bf673d225a9f93ceaa1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2091491Reviewed-by:Marc Treib <treib@chromium.org> Commit-Queue: Maksim Moskvitin <mmoskvitin@google.com> Cr-Commit-Position: refs/heads/master@{#748182}
Showing
Please register or sign in to comment