[Signin]: Add consent level to GetPrimaryAccount*/HasPrimaryAccount.
The primary account can be butter or sync account depending on the consent level. This CL adds consent level as a parameter to GetPrimaryAccount* and HasPrimaryAccount to indicate the consent level required by the caller. It can be |kNotRequired|, in that case it returns the corresponding info of the primary account if it exists. If consent is |kSync|, it returns the corresponding info if the primary account exists and was granted sync consent. Bug: 1046746 Change-Id: Id69f1f234228166f347e01f044672836fd88d5be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033351 Commit-Queue: Monica Basta <msalama@chromium.org> Reviewed-by:David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#737791}
Showing
Please register or sign in to comment