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

Unified Diff: chrome/browser/notifications/persistent_notification_delegate.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: chrome/browser/notifications/persistent_notification_delegate.cc
diff --git a/chrome/browser/notifications/persistent_notification_delegate.cc b/chrome/browser/notifications/persistent_notification_delegate.cc
index dba99c7d0f48a3411cc262e735a4a78de0ee1384..212a6d84cb2a56e30c39e1984f56f93acf5a75c0 100644
--- a/chrome/browser/notifications/persistent_notification_delegate.cc
+++ b/chrome/browser/notifications/persistent_notification_delegate.cc
@@ -33,7 +33,16 @@ void PersistentNotificationDelegate::Click() {
PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClick(
browser_context_,
persistent_notification_id_,
- origin_);
+ origin_,
+ -1 /* action_index */);
+}
+
+void PersistentNotificationDelegate::ButtonClick(int button_index) {
+ PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClick(
+ browser_context_,
+ persistent_notification_id_,
+ origin_,
+ button_index);
}
std::string PersistentNotificationDelegate::id() const {

Powered by Google App Engine
This is Rietveld 408576698