Index: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java |
index 5123e7bf6f0e2bb648373acf936736e8f2e683fa..5ac519cdd00144b96a6f40116a074ebb3d51d270 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java |
@@ -25,6 +25,7 @@ import org.chromium.base.Log; |
import org.chromium.base.ObserverList; |
import org.chromium.base.VisibleForTesting; |
import org.chromium.chrome.R; |
+import org.chromium.chrome.browser.ChromeApplication; |
import org.chromium.chrome.browser.notifications.NotificationConstants; |
import org.chromium.chrome.browser.notifications.NotificationManagerProxy; |
import org.chromium.chrome.browser.notifications.NotificationManagerProxyImpl; |
@@ -415,6 +416,13 @@ class UrlManager { |
return; |
} |
+ // We should only show notifications if there's no other notification-based client. |
+ if (PhysicalWebEnvironment |
+ .getInstance((ChromeApplication) mContext.getApplicationContext()) |
+ .hasNotificationBasedClient()) { |
+ return; |
+ } |
+ |
// We only call showNotification if the list was empty before because we need to be able to |
// count the number of times we show the OptIn notification. |
if (isUrlListEmptyBefore) { |