[Signin][Android] Minimize IdentityManager JNI interface
Reimplement GetPrimaryAccountId/HasPrimaryAccount in IdentityManager.java as helpers on top of GetPrimaryAccountInfo instead of standalone methods that are routed through JNI separately. This makes the code more concise, facilitates mocking and simplifies future changes to these methods. Bug: 1046746 Change-Id: I8bfb715cb562b957849ca6e272a1731c17d98194 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2026573 Commit-Queue: David Roger <droger@chromium.org> Auto-Submit: Boris Sazonov <bsazonov@chromium.org> Reviewed-by:David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#736771}
Showing
Please register or sign in to comment