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

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

Issue 2714743002: Retrive displayed notifications asynchronously
Patch Set: apply review comments from https://codereview.chromium.org/2709213005/ 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..51889f79b0aa50698de18d0fdf87ccb5844eb1e4 100644
--- a/chrome/browser/notifications/native_notification_display_service.cc
+++ b/chrome/browser/notifications/native_notification_display_service.cc
@@ -15,6 +15,8 @@
#include "chrome/browser/notifications/persistent_notification_handler.h"
#include "chrome/browser/profiles/profile.h"
+#include "content/public/browser/browser_thread.h"
+
namespace {
std::string GetProfileId(Profile* profile) {
@@ -75,6 +77,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,
« no previous file with comments | « chrome/browser/notifications/native_notification_display_service.h ('k') | chrome/browser/notifications/notification_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698