Index: chrome/browser/notifications/platform_notification_service_impl.cc |
diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc |
index 04734d10174cc6a3e0742d56480536bf374d35ba..8a2c78347518a55d224c5ce23801ef19e21af5a7 100644 |
--- a/chrome/browser/notifications/platform_notification_service_impl.cc |
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc |
@@ -101,8 +101,13 @@ void PlatformNotificationServiceImpl::OnPersistentNotificationClick( |
const GURL& origin, |
int action_index) const { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
- content::RecordAction( |
- base::UserMetricsAction("Notifications.Persistent.Clicked")); |
+ if (action_index == -1) { |
+ content::RecordAction(base::UserMetricsAction( |
+ "Notifications.Persistent.Clicked")); |
+ } else { |
+ content::RecordAction(base::UserMetricsAction( |
+ "Notifications.Persistent.ClickedActionButton")); |
+ } |
content::NotificationEventDispatcher::GetInstance() |
->DispatchNotificationClickEvent( |