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

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

Issue 2392343002: Plumbing in notification replies: PlatformNotificationService -> SW (Closed)
Patch Set: include base/logging.h for NOTIMPLEMENTED Created 4 years, 2 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/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 3e21f926c3f27b7e4ec54d03c34dc953aadd7b9a..e2c5d876bc0bd82a105255565afb15df027b185f 100644
--- a/chrome/browser/notifications/non_persistent_notification_handler.cc
+++ b/chrome/browser/notifications/non_persistent_notification_handler.cc
@@ -25,9 +25,12 @@ void NonPersistentNotificationHandler::OnClick(
Profile* profile,
const std::string& origin,
const std::string& notification_id,
- int action_index) {
- // Buttons not supported for non persistent notifications.
+ int action_index,
+ const base::NullableString16& reply) {
+ // Buttons and replies not supported for non persistent notifications.
DCHECK_EQ(action_index, -1);
+ DCHECK(reply.is_null());
+
if (notifications_.find(notification_id) != notifications_.end()) {
notifications_[notification_id]->Click();
}

Powered by Google App Engine
This is Rietveld 408576698