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

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

Issue 2917923004: Move handler processing to NotificationDisplayService
Patch Set: Created 3 years, 7 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/notification_platform_bridge_linux.cc
diff --git a/chrome/browser/notifications/notification_platform_bridge_linux.cc b/chrome/browser/notifications/notification_platform_bridge_linux.cc
index 50dc9d50dcfbcf6e8ac96a2c8e86a971eec4c9bf..25f08b1226af1c79a3688938556d2c1bf2b9261b 100644
--- a/chrome/browser/notifications/notification_platform_bridge_linux.cc
+++ b/chrome/browser/notifications/notification_platform_bridge_linux.cc
@@ -25,8 +25,8 @@
#include "base/task_scheduler/post_task.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
-#include "chrome/browser/notifications/native_notification_display_service.h"
#include "chrome/browser/notifications/notification.h"
+#include "chrome/browser/notifications/notification_display_service.h"
#include "chrome/browser/notifications/notification_display_service_factory.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/shell_integration_linux.h"
@@ -166,8 +166,8 @@ void ProfileLoadedCallback(NotificationCommon::Operation operation,
if (!profile)
return;
- auto* display_service = static_cast<NativeNotificationDisplayService*>(
- NotificationDisplayServiceFactory::GetForProfile(profile));
+ auto* display_service =
+ NotificationDisplayServiceFactory::GetForProfile(profile);
display_service->ProcessNotificationOperation(operation, notification_type,
origin, notification_id,
action_index, reply);
@@ -341,7 +341,7 @@ class NotificationPlatformBridgeLinuxImpl
// A copy of the origin_url from the underlying
// message_center::Notification. Used to pass back to
- // NativeNotificationDisplayService.
+ // NotificationDisplayService.
const GURL origin_url;
// Used to keep track of the IDs of the buttons currently displayed

Powered by Google App Engine
This is Rietveld 408576698