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

Unified Diff: chrome/browser/notifications/notification_platform_bridge_android.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/notification_platform_bridge_android.cc
diff --git a/chrome/browser/notifications/notification_platform_bridge_android.cc b/chrome/browser/notifications/notification_platform_bridge_android.cc
index 0c8c82fe6f819c043ad8bc8419020a02332cd819..c45d0e1771ee60e9d633003b4b040c5422883475 100644
--- a/chrome/browser/notifications/notification_platform_bridge_android.cc
+++ b/chrome/browser/notifications/notification_platform_bridge_android.cc
@@ -319,6 +319,18 @@ bool NotificationPlatformBridgeAndroid::GetDisplayed(
return false;
}
+void NotificationPlatformBridgeMac::GetDisplayedAsync(
+ const std::string& profile_id,
+ bool incognito,
+ const NotificationCommon::NotificationResultCallback& callback) const {
+ std::unique_ptr<std::set<std::string>> displayedNotifications =
+ base::MakeUnique<std::set<std::string>>();
+ content::BrowserThread::PostTask(
+ content::BrowserThread::IO, FROM_HERE,
+ base::Bind(callback, base::Passed(&displayedNotifications),
+ false /* supports sync */));
Peter Beverloo 2017/02/24 16:12:24 nit: "sync" is rather ambiguous (also in the other
Miguel Garcia 2017/03/22 22:00:07 Done.
+}
+
// static
bool NotificationPlatformBridgeAndroid::RegisterNotificationPlatformBridge(
JNIEnv* env) {

Powered by Google App Engine
This is Rietveld 408576698