Preserve the orginal behaviour of IdentityGetAccountsFunction::Run

https://crrev.com/c/1456058 ported IdentityGetAccountsFunction::Run to
talk to the IdentityManager C++ instead of Mojo. In doing so, it changed
the returned account list order. This CL reworks the code to keep the
primary account as the first account in the list.

Bug: 928184
Change-Id: Ic6d305154fc4c46641e0ef2a3d58022ddfeb5de6
Reviewed-on: https://chromium-review.googlesource.com/c/1457316
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630281}
1 file changed