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

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

Issue 2093953002: Introduce a new API to handle native notification clicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 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/stub_notification_platform_bridge.cc
diff --git a/chrome/browser/notifications/stub_notification_platform_bridge.cc b/chrome/browser/notifications/stub_notification_platform_bridge.cc
index 257a5ec3729c699103101e321f8bb866169dca20..78c21c6184ca890bb458e0c0f1391495b2ce0044 100644
--- a/chrome/browser/notifications/stub_notification_platform_bridge.cc
+++ b/chrome/browser/notifications/stub_notification_platform_bridge.cc
@@ -18,10 +18,12 @@ Notification StubNotificationPlatformBridge::GetNotificationAt(
return notifications_[profile_id][index];
}
-void StubNotificationPlatformBridge::Display(const std::string& notification_id,
- const std::string& profile_id,
- bool incognito,
- const Notification& notification) {
+void StubNotificationPlatformBridge::Display(
+ NotificationCommon::Type notification_type,
+ const std::string& notification_id,
+ const std::string& profile_id,
+ bool incognito,
+ const Notification& notification) {
notifications_[profile_id].push_back(notification);
}

Powered by Google App Engine
This is Rietveld 408576698