handle the edge case where more than one directory matches an account

In rare cases, Gmail can have multiple directory providers for a single
account. In these cases, the prior code would actually end up *omitting*
all but the last provider it encountered in the final results.

Fix this by only "promoting" the first such matching directory. The
choice to promote the first is arbitrary, but this is strictly better
than the existing code because it no longer omits the other matching
directories.

Bug: 28171393
Change-Id: Ifde3dbc868b0e3d1c6c5520429847cb773a808b2
1 file changed