Index: chrome/browser/notifications/notification_display_service_factory.cc |
diff --git a/chrome/browser/notifications/notification_display_service_factory.cc b/chrome/browser/notifications/notification_display_service_factory.cc |
index 3e7c4f17533e5000c53c894bbd2a78fa6578b7cd..2bc9b96f662513e8576523e8513e5a8dceb9be7b 100644 |
--- a/chrome/browser/notifications/notification_display_service_factory.cc |
+++ b/chrome/browser/notifications/notification_display_service_factory.cc |
@@ -8,6 +8,7 @@ |
#include "base/memory/singleton.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/notifications/message_center_display_service.h" |
+#include "chrome/browser/notifications/notification_display_service_proxy.h" |
#include "chrome/browser/notifications/notification_ui_manager.h" |
#include "chrome/browser/profiles/incognito_helpers.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -50,14 +51,18 @@ KeyedService* NotificationDisplayServiceFactory::BuildServiceInstanceFor( |
return new NativeNotificationDisplayService( |
Profile::FromBrowserContext(context), |
g_browser_process->notification_platform_bridge()); |
-#else // defined(OS_ANDROID) |
- if (base::FeatureList::IsEnabled(features::kNativeNotifications) && |
- g_browser_process->notification_platform_bridge()) { |
+#elif defined(OS_MACOSX) |
+ if (base::FeatureList::IsEnabled(features::kNativeNotifications)) { |
return new NativeNotificationDisplayService( |
Profile::FromBrowserContext(context), |
g_browser_process->notification_platform_bridge()); |
} |
-#endif // defined(OS_ANDROID) |
+#elif defined(OS_LINUX) |
+ if (base::FeatureList::IsEnabled(features::kNativeNotifications)) { |
+ return new NotificationDisplayServiceProxy( |
+ Profile::FromBrowserContext(context)); |
+ } |
+#endif |
#endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) |
return new MessageCenterDisplayService( |
Profile::FromBrowserContext(context), |