| Index: chrome/browser/resources/google_now/background.js
|
| diff --git a/chrome/browser/resources/google_now/background.js b/chrome/browser/resources/google_now/background.js
|
| index 32830a4bbbd4d3d89eafadb629a67892f41e1646..f74a22d18d2212680f48204297eb5a939ddfd376 100644
|
| --- a/chrome/browser/resources/google_now/background.js
|
| +++ b/chrome/browser/resources/google_now/background.js
|
| @@ -438,6 +438,8 @@ function onNotificationClosed(notificationId, byUser) {
|
| if (!byUser)
|
| return;
|
|
|
| + metrics.recordUserAction('Dismissed');
|
| +
|
| tasks.add(DISMISS_CARD_TASK_NAME, function(callback) {
|
| // Schedule retrying dismissing until all dismissals go through.
|
| // TODO(vadimt): Implement exponential backoff and unify it with getting
|
| @@ -516,6 +518,7 @@ chrome.alarms.onAlarm.addListener(function(alarm) {
|
|
|
| chrome.notifications.onClicked.addListener(
|
| function(notificationId) {
|
| + metrics.recordUserAction('MessageClicked');
|
| onNotificationClicked(notificationId, function(actionUrls) {
|
| return actionUrls.messageUrl;
|
| });
|
| @@ -523,6 +526,7 @@ chrome.notifications.onClicked.addListener(
|
|
|
| chrome.notifications.onButtonClicked.addListener(
|
| function(notificationId, buttonIndex) {
|
| + metrics.recordUserAction('ButtonClicked' + buttonIndex);
|
| onNotificationClicked(notificationId, function(actionUrls) {
|
| if (!Array.isArray(actionUrls.buttonUrls))
|
| return undefined;
|
|
|