| Index: chrome/browser/android/banners/app_banner_data_fetcher_android.cc
|
| diff --git a/chrome/browser/android/banners/app_banner_data_fetcher_android.cc b/chrome/browser/android/banners/app_banner_data_fetcher_android.cc
|
| index 10164088aa5ddfb2cfc92468681e243ffb5e2a2e..3357f612ef13a9e166dcaed5975ca2ed6ee5632b 100644
|
| --- a/chrome/browser/android/banners/app_banner_data_fetcher_android.cc
|
| +++ b/chrome/browser/android/banners/app_banner_data_fetcher_android.cc
|
| @@ -73,6 +73,15 @@ base::Closure AppBannerDataFetcherAndroid::FetchWebappSplashScreenImageCallback(
|
| minimum_splash_image_size_in_dp_, webapp_id);
|
| }
|
|
|
| +bool AppBannerDataFetcherAndroid::IsWebAppInstalled(
|
| + content::BrowserContext* browser_context,
|
| + const GURL& start_url) {
|
| + // Check whether a WebAPK is installed in order to block showing the app
|
| + // banner if a WebAPK is installed even after a user clears Chrome's data.
|
| + // This function does not check whether a non-WebAPK web app is installed.
|
| + return ShortcutHelper::IsWebApkInstalled(start_url);
|
| +}
|
| +
|
| void AppBannerDataFetcherAndroid::ShowBanner(const GURL& icon_url,
|
| const SkBitmap* icon,
|
| const base::string16& title,
|
|
|