Stop sync when AllowedByPlatform is set to false

This currently has no practical effect (the only call site also calls
RequestStop anyway), but it prevents ProfileSyncService from getting
into an inconsistent state.

Bug: 867901
Change-Id: Iaaa72405eac6fb81ee739d2cbeea6ddf52960996
Reviewed-on: https://chromium-review.googlesource.com/c/1319716
Reviewed-by: Mikel Astiz <mastiz@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605716}
1 file changed