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

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

Issue 2709213005: [Mac] Add XPC alerts to GetDisplayedNotifications (Closed)
Patch Set: - Created 3 years, 10 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/native_notification_display_service.cc
diff --git a/chrome/browser/notifications/native_notification_display_service.cc b/chrome/browser/notifications/native_notification_display_service.cc
index 2de879d0bee177fe377d7bfd028db38317b7c310..a5ba31541876c963e359f7d61eb186ae7181de0f 100644
--- a/chrome/browser/notifications/native_notification_display_service.cc
+++ b/chrome/browser/notifications/native_notification_display_service.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/notifications/notification_platform_bridge.h"
#include "chrome/browser/notifications/persistent_notification_handler.h"
#include "chrome/browser/profiles/profile.h"
+#include "content/public/browser/browser_thread.h"
namespace {
@@ -75,6 +76,12 @@ bool NativeNotificationDisplayService::GetDisplayed(
GetProfileId(profile_), profile_->IsOffTheRecord(), notifications);
}
+void NativeNotificationDisplayService::GetDisplayedAsync(
+ const NotificationCommon::NotificationResultCallback& callback) const {
+ return notification_bridge_->GetDisplayedAsync(
+ GetProfileId(profile_), profile_->IsOffTheRecord(), callback);
+}
+
void NativeNotificationDisplayService::ProcessNotificationOperation(
NotificationCommon::Operation operation,
NotificationCommon::Type notification_type,

Powered by Google App Engine
This is Rietveld 408576698