From: csagan5 <32685696+csagan5@users.noreply.github.com> Date: Wed, 28 Sep 2022 00:54:10 +0200 Subject: Disable add to home screen prompt License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html --- .../webapps/AddToHomescreenMostVisitedTileClickObserver.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenMostVisitedTileClickObserver.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenMostVisitedTileClickObserver.java --- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenMostVisitedTileClickObserver.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenMostVisitedTileClickObserver.java @@ -43,10 +43,7 @@ public class AddToHomescreenMostVisitedTileClickObserver implements MostVisitedT ntp.addMostVisitedTileClickObserver( AddToHomescreenMostVisitedTileClickObserver.this); } else { - // If it is a regular web page, and started from a most visited tile, show IPH. - if (url.getOrigin().equals(mLastClickedMostVisitedTileUrl)) { - addToHomescreenIPHController.showAddToHomescreenIPH(tab); - } + // do not show any add to home screen IPH in Bromite removeObserver(tab); } mLastClickedMostVisitedTileUrl = null; -- 2.25.1