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

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

Issue 2855983002: Consider Button clicks for extension notifications (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/non_persistent_notification_handler.cc
diff --git a/chrome/browser/notifications/non_persistent_notification_handler.cc b/chrome/browser/notifications/non_persistent_notification_handler.cc
index 84ec7804cbf902ee529a7b7d4f11a278c1b58641..9a33f5360089a844572c0c027f1722defb9f2b20 100644
--- a/chrome/browser/notifications/non_persistent_notification_handler.cc
+++ b/chrome/browser/notifications/non_persistent_notification_handler.cc
@@ -31,7 +31,10 @@ void NonPersistentNotificationHandler::OnClick(
DCHECK(reply.is_null());
if (notifications_.find(notification_id) != notifications_.end()) {
- notifications_[notification_id]->Click();
+ if (action_index >= 0)
+ notifications_[notification_id]->ButtonClick(action_index);
+ else
+ notifications_[notification_id]->Click();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698