Call syncStateChanged for two set methods in FakeProfileSyncService
Methods from ProfileSyncService should be called from the UI thread. However its subclass FakeProfileSyncService sets and gets some sync states without checking if its on the UI thread or not. This cl calls syncStateChanged inside setEngineInitialized() and setPassphraseRequiredForPreferredDataTypes(). Also assert these set and their corresponding isSet methods are run on UI thread. Bug: 1056677 Change-Id: I2b41c88c054a1abe9591021abf3476d3b754b972 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2080232 Commit-Queue: Tanmoy Mollik <triploblastic@chromium.org> Reviewed-by:Boris Sazonov <bsazonov@chromium.org> Reviewed-by:
Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#752447}
Showing
Please register or sign in to comment