ProfileSyncService: Remove handling of IsSyncAllowedByFlag
If IsSyncAllowedByFlag is false, then the ProfileSyncService isn't even instantiated (its factory checks for that). So no need to handle it in the service. This CL replaces corresponding "if"s with DCHECKs. It also updates the comment for DISABLE_REASON_PLATFORM_OVERRIDE, which now doesn't include the commandline flag anymore. Bug: 839834 Change-Id: Ia8466bb1eddddc4b55ab8477e9d8a4a6a0017bf5 Reviewed-on: https://chromium-review.googlesource.com/1151200Reviewed-by:Jan Krcal <jkrcal@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#578274}
Showing
Please register or sign in to comment