Make AndroidSyncSettings.isSyncEnabled() internal to SyncController
This method was one of the big villains of AndroidSyncSettings, because it was easy to use it instead of some ProfileSyncService API. This CL makes it internal to SyncController, avoiding new uses. A warning is added to isChromeSyncEnabled() to prevent developers from thinking the method has just been renamed. Extra care is taken not to weaken the tests in AndroidSyncSettingsTest, replacing expectations on this method accordingly. Bug: 1107904 Change-Id: I6762255cf89881ac082d01e860ff0cbd91eace83 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2571101 Commit-Queue: Victor Vianna <victorvianna@google.com> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#833401}
Showing
Please register or sign in to comment