| 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 1e405add13afad290655388e3f551b99d5029087..6505a9d9b267b1331d43ecd5ba9cde2d887c26ae 100644
|
| --- a/content/shell/browser/layout_test/layout_test_notification_manager.cc
|
| +++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc
|
| @@ -106,12 +106,16 @@ bool LayoutTestNotificationManager::GetDisplayedPersistentNotifications(
|
| return false;
|
| }
|
|
|
| -void LayoutTestNotificationManager::SimulateClick(const std::string& title) {
|
| +void LayoutTestNotificationManager::SimulateClick(const std::string& title,
|
| + int action_index) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
|
|
| // 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): Implement this.
|
| + CHECK(action_index < 0) << "Simulating action clicks for page notifications"
|
| + << " is not yet implemented";
|
| page_iterator->second->NotificationClick();
|
| return;
|
| }
|
| @@ -127,7 +131,7 @@ void LayoutTestNotificationManager::SimulateClick(const std::string& title) {
|
| notification.browser_context,
|
| notification.persistent_id,
|
| notification.origin,
|
| - -1 /* action_index */,
|
| + action_index,
|
| base::Bind(&OnEventDispatchComplete));
|
| }
|
|
|
|
|