Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3062)

Unified Diff: chrome/browser/notifications/platform_notification_service_unittest.cc

Issue 2836093002: Make Android notifications rely on the native notification flag (Closed)
Patch Set: Add an additional check for Android Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/platform_notification_service_unittest.cc
diff --git a/chrome/browser/notifications/platform_notification_service_unittest.cc b/chrome/browser/notifications/platform_notification_service_unittest.cc
index a7ed01980cb9ce9884ff49c81cfaac0125f46931..808fdd2931306d60a08898fe47df4a72ed4925bf 100644
--- a/chrome/browser/notifications/platform_notification_service_unittest.cc
+++ b/chrome/browser/notifications/platform_notification_service_unittest.cc
@@ -165,11 +165,7 @@ class PlatformNotificationServiceTest : public testing::Test {
}
Notification GetDisplayedNotification() {
-#if defined(OS_ANDROID)
- return static_cast<StubNotificationPlatformBridge*>(
- g_browser_process->notification_platform_bridge())
- ->GetNotificationAt(profile_->GetPath().BaseName().value(), 0);
-#elif BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS)
+#if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS)
if (base::FeatureList::IsEnabled(features::kNativeNotifications)) {
return static_cast<StubNotificationPlatformBridge*>(
g_browser_process->notification_platform_bridge())
« no previous file with comments | « chrome/browser/notifications/notification_display_service_factory.cc ('k') | chrome/common/chrome_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698