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

Unified Diff: content/browser/notifications/page_notification_delegate.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/browser/notifications/page_notification_delegate.cc
diff --git a/content/browser/notifications/page_notification_delegate.cc b/content/browser/notifications/page_notification_delegate.cc
index fdf085d7c7ca6bc48b846ec9fb2b8427938d2417..7a1635c222477dd0d6e57e2267b4f51f5003e77c 100644
--- a/content/browser/notifications/page_notification_delegate.cc
+++ b/content/browser/notifications/page_notification_delegate.cc
@@ -36,12 +36,13 @@ void PageNotificationDelegate::NotificationClosed() {
->notification_message_filter()->DidCloseNotification(notification_id_);
}
-void PageNotificationDelegate::NotificationClick() {
+void PageNotificationDelegate::NotificationClick(int action_index) {
RenderProcessHost* sender = RenderProcessHost::FromID(render_process_id_);
if (!sender)
return;
- sender->Send(new PlatformNotificationMsg_DidClick(notification_id_));
+ sender->Send(new PlatformNotificationMsg_DidClick(notification_id_,
+ action_index));
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698