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

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

Issue 1422193003: UMA for Notification action buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit 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: 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(

Powered by Google App Engine
This is Rietveld 408576698