private AccountIndex[] autoUpgraded(AccountIndex[] oldEntries) {
    AccountIndex[] newEntries = new AccountIndex[oldEntries.length];
    for (int i = 0; i < oldEntries.length; i++) {
      newEntries[i] = oldEntries[i];
      if (oldEntries[i].getName().startsWith("Google:")) {
        newEntries[i] = index(oldEntries[i].getName(), "Google");
      }
      if (oldEntries[i].getName().startsWith("Dropbox:")) {
        newEntries[i] = index(oldEntries[i].getName(), "Dropbox");
      }
    }
    return newEntries;
  }
Note: caller should carefully determine the expected value of {@code isGoogleAccount}, which
is affected by multiple factors.

@param isGoogleAccount is a {@code boolean}, not a {@link Boolean}
javatests/com/google/android/apps/authenticator/otp/AccountDbTest.java