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

Unified Diff: content/renderer/service_worker/service_worker_context_client.cc

Issue 1269923003: Plumb notification action index for desktop SW notificationclick (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@actions
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/renderer/service_worker/service_worker_context_client.cc
diff --git a/content/renderer/service_worker/service_worker_context_client.cc b/content/renderer/service_worker/service_worker_context_client.cc
index a8c5b8ad2cfce04506a122e567183519ebb9c62e..4f05b066ccdfe7d9f7e37bdf56f93b181b4a15cf 100644
--- a/content/renderer/service_worker/service_worker_context_client.cc
+++ b/content/renderer/service_worker/service_worker_context_client.cc
@@ -713,13 +713,15 @@ void ServiceWorkerContextClient::OnFetchEvent(
void ServiceWorkerContextClient::OnNotificationClickEvent(
int request_id,
int64_t persistent_notification_id,
- const PlatformNotificationData& notification_data) {
+ const PlatformNotificationData& notification_data,
+ int action_index) {
TRACE_EVENT0("ServiceWorker",
"ServiceWorkerContextClient::OnNotificationClickEvent");
proxy_->dispatchNotificationClickEvent(
request_id,
persistent_notification_id,
- ToWebNotificationData(notification_data));
+ ToWebNotificationData(notification_data),
+ action_index);
Peter Beverloo 2015/08/04 21:11:09 Doesn't "git cl format" complain about this? IIRC
johnme 2015/08/05 12:05:36 Nope. Not sure what you mean by "this" either; if
}
void ServiceWorkerContextClient::OnPushEvent(int request_id,

Powered by Google App Engine
This is Rietveld 408576698