[CrOS MultiDevice] Add shutdown flow for DeviceSync service.
Previously, the DeviceSync service would retain references to its dependencies until it was deleted when the browser process was killed. When attempting to enable the MultiDevice flags by default, this causes crashes in some tests due to the service not removing itself as an observer. This CL adds an explicit shutdown step which removes these references and causes the observer to be removed. Sample failure: https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8933085811650027344/+/steps/sync_integration_tests__with_patch_/0/logs/USS__x2f_SingleClientWalletSyncTest.DownloadProfileStorage__x2f_0/0 Bug: 884066 Change-Id: I87bcc9ab27f0a1032bc6990a71f863786ddf97fc Reviewed-on: https://chromium-review.googlesource.com/c/1274886 Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:Jeremy Klein <jlklein@chromium.org> Cr-Commit-Position: refs/heads/master@{#598789}
Showing
Please register or sign in to comment