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

Unified Diff: content/shell/browser/layout_test/layout_test_notification_manager.cc

Issue 1409143004: Only allow action buttons in persistent notifications per spec update (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sw-not-props
Patch Set: Created 5 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: content/shell/browser/layout_test/layout_test_notification_manager.cc
diff --git a/content/shell/browser/layout_test/layout_test_notification_manager.cc b/content/shell/browser/layout_test/layout_test_notification_manager.cc
index 3a0433b380db744a5acc548df565a4bda247303f..82cc07df3232a4b5e2a970097cee7f626ae50777 100644
--- a/content/shell/browser/layout_test/layout_test_notification_manager.cc
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc
@@ -113,7 +113,8 @@ void LayoutTestNotificationManager::SimulateClick(const std::string& title,
// First check for page-notifications with the given title.
const auto& page_iterator = page_notifications_.find(title);
if (page_iterator != page_notifications_.end()) {
- // TODO(johnme): Pass action_index once it's supported.
+ DCHECK_EQ(action_index, -1) << "Action buttons are only supported for "
Peter Beverloo 2015/10/21 17:02:52 Can we have a constant please? That also removes t
johnme 2015/10/21 18:11:31 I'll add the constant in a follow-up patch to avoi
+ "persistent notifications";
page_iterator->second->NotificationClick();
return;
}

Powered by Google App Engine
This is Rietveld 408576698