| Index: chrome/browser/push_messaging/push_messaging_notification_manager.cc
|
| diff --git a/chrome/browser/push_messaging/push_messaging_notification_manager.cc b/chrome/browser/push_messaging/push_messaging_notification_manager.cc
|
| index e6fb974a2d2e6d060fc376c5aa6a5659d348fcbc..4a0afa6c7d49889327be701505d0279797bbd2cc 100644
|
| --- a/chrome/browser/push_messaging/push_messaging_notification_manager.cc
|
| +++ b/chrome/browser/push_messaging/push_messaging_notification_manager.cc
|
| @@ -36,7 +36,7 @@
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "url/gurl.h"
|
|
|
| -#if BUILDFLAG(ANDROID_JAVA_UI)
|
| +#if defined(OS_ANDROID)
|
| #include "chrome/browser/ui/android/tab_model/tab_model.h"
|
| #include "chrome/browser/ui/android/tab_model/tab_model_list.h"
|
| #else
|
| @@ -148,7 +148,7 @@ void PushMessagingNotificationManager::DidGetNotificationsFromDatabase(
|
| bool notification_needed = true;
|
|
|
| // Sites with a currently visible tab don't need to show notifications.
|
| -#if BUILDFLAG(ANDROID_JAVA_UI)
|
| +#if defined(OS_ANDROID)
|
| for (auto it = TabModelList::begin(); it != TabModelList::end(); ++it) {
|
| Profile* profile = (*it)->GetProfile();
|
| WebContents* active_web_contents = (*it)->GetActiveWebContents();
|
|
|