[Unity][Android] Check isEngineInitialized for sync error card

This CL modifies the condition checked before displaying the sync error
card in settings. If settings are opened from the sign-in page,
getSetupInProgressHandle prevents sync from becoming active, so
ProfileSyncService.isSyncActive returns false and the error card card is
never displayed. This CL replaces isSyncActive in the condition with
isEngineInitialized. In fact, the same condition (isEngineInitialized()
&& isPassphraseRequiredForDecryption()) is already checked in

Bug: 914056
Change-Id: I4d2860d8bc0a4b1c4ac47102105da90ed2b58d75
Reviewed-on: https://chromium-review.googlesource.com/c/1418231
Reviewed-by: Marc Treib <treib@chromium.org>
Commit-Queue: Boris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#624038}
2 files changed