Avoid updating the primary button when the state does not allow it.

Identity list changes may occur when the state of the ChromeSigninViewController
is different than IDENTITY_PICKER_STATE, however updating the buttons is only
supported when the user is in IDENTITY_PICKER_STATE.

This CL avoids updating the buttons of the ChromeSigninViewController when the
state is different than IDENTITY_PICKER_STATE.

Bug: 959722
Change-Id: I1fc5a0f1cfb94135f9c7827a52abdec66071fb9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1598809
Reviewed-by: Jérôme Lebel <jlebel@chromium.org>
Reviewed-by: Mihai Sardarescu <msarda@chromium.org>
Commit-Queue: Mihai Sardarescu <msarda@chromium.org>
Cr-Commit-Position: refs/heads/master@{#657230}
1 file changed