public static void promptForChromeUpdateIfNeeded(Context context, String providerPackage) {
        if (!TrustedWebUtils.VERSION_CHECK_CHROME_PACKAGES.contains(providerPackage)) return;
        if (!chromeNeedsUpdate(context.getPackageManager(), providerPackage)) {
            return;
        }

        showToastIfResourceExists(context, UPDATE_CHROME_MESSAGE_RESOURCE_ID);
    }
If we are about to launch a TWA on Chrome Beta or Stable at a version before TWAs are
supported, display a Toast to the user asking them to update.
@param context {@link Context} to launch the Toast and access Resources and the
               PackageManager.
@param providerPackage Provider package we're about to use.
customtabs/src/android/support/customtabs/TrustedWebUtils.java