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

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

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 9 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/message_center_stats_collector.cc
diff --git a/chrome/browser/notifications/message_center_stats_collector.cc b/chrome/browser/notifications/message_center_stats_collector.cc
index 459f2de0aed10f93bbd3e262544dd42e35a47e60..4cf477203baf5cbb29dbc06be4b49f763962581e 100644
--- a/chrome/browser/notifications/message_center_stats_collector.cc
+++ b/chrome/browser/notifications/message_center_stats_collector.cc
@@ -9,7 +9,7 @@
#include <string>
#include "base/metrics/histogram_macros.h"
-#include "content/public/browser/user_metrics.h"
+#include "base/metrics/user_metrics.h"
#include "ui/message_center/message_center.h"
MessageCenterStatsCollector::NotificationStats::NotificationStats() {}
@@ -110,8 +110,7 @@ void MessageCenterStatsCollector::OnNotificationButtonClicked(
}
void MessageCenterStatsCollector::OnNotificationSettingsClicked() {
- content::RecordAction(
- base::UserMetricsAction("Notifications.ShowSiteSettings"));
+ base::RecordAction(base::UserMetricsAction("Notifications.ShowSiteSettings"));
}
void MessageCenterStatsCollector::OnNotificationDisplayed(
@@ -131,22 +130,19 @@ void MessageCenterStatsCollector::OnCenterVisibilityChanged(
case message_center::VISIBILITY_TRANSIENT:
break;
case message_center::VISIBILITY_MESSAGE_CENTER:
- content::RecordAction(
+ base::RecordAction(
base::UserMetricsAction("Notifications.ShowMessageCenter"));
break;
case message_center::VISIBILITY_SETTINGS:
- content::RecordAction(
- base::UserMetricsAction("Notifications.ShowSettings"));
+ base::RecordAction(base::UserMetricsAction("Notifications.ShowSettings"));
break;
}
}
void MessageCenterStatsCollector::OnQuietModeChanged(bool in_quiet_mode) {
if (in_quiet_mode) {
- content::RecordAction(
- base::UserMetricsAction("Notifications.Mute"));
+ base::RecordAction(base::UserMetricsAction("Notifications.Mute"));
} else {
- content::RecordAction(
- base::UserMetricsAction("Notifications.Unmute"));
+ base::RecordAction(base::UserMetricsAction("Notifications.Unmute"));
}
}

Powered by Google App Engine
This is Rietveld 408576698