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

Unified Diff: content/child/notifications/notification_manager.cc

Issue 1275743003: Deliver action clicks to page notifications (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@click_test
Patch Set: Created 5 years, 4 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: content/child/notifications/notification_manager.cc
diff --git a/content/child/notifications/notification_manager.cc b/content/child/notifications/notification_manager.cc
index 95195455295633da3dab73e4b12351c0e8c3303e..2731fc1206af59a5e6fa4bc0e7557555256fa2e9 100644
--- a/content/child/notifications/notification_manager.cc
+++ b/content/child/notifications/notification_manager.cc
@@ -274,12 +274,12 @@ void NotificationManager::OnDidClose(int notification_id) {
active_page_notifications_.erase(iter);
}
-void NotificationManager::OnDidClick(int notification_id) {
+void NotificationManager::OnDidClick(int notification_id, int action_index) {
const auto& iter = active_page_notifications_.find(notification_id);
if (iter == active_page_notifications_.end())
return;
- iter->second->dispatchClickEvent();
+ iter->second->dispatchClickEvent(action_index);
}
void NotificationManager::OnDidGetNotifications(

Powered by Google App Engine
This is Rietveld 408576698