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

Unified Diff: chrome/browser/ui/views/tabs/alert_indicator_button.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/ui/views/tabs/alert_indicator_button.cc
diff --git a/chrome/browser/ui/views/tabs/alert_indicator_button.cc b/chrome/browser/ui/views/tabs/alert_indicator_button.cc
index 8f12ea6119b0887ccd856d7902fbb6701e1322fb..0a7f1e65cd452496cd57026f03cef070291395e5 100644
--- a/chrome/browser/ui/views/tabs/alert_indicator_button.cc
+++ b/chrome/browser/ui/views/tabs/alert_indicator_button.cc
@@ -5,11 +5,11 @@
#include "chrome/browser/ui/views/tabs/alert_indicator_button.h"
#include "base/macros.h"
+#include "base/metrics/user_metrics.h"
#include "base/timer/timer.h"
#include "chrome/browser/ui/views/tabs/tab.h"
#include "chrome/browser/ui/views/tabs/tab_controller.h"
#include "chrome/browser/ui/views/tabs/tab_renderer_data.h"
-#include "content/public/browser/user_metrics.h"
#include "ui/gfx/animation/animation_delegate.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image.h"
@@ -183,7 +183,7 @@ bool AlertIndicatorButton::OnMouseDragged(const ui::MouseEvent& event) {
const bool ret = ImageButton::OnMouseDragged(event);
if (previous_state != views::CustomButton::STATE_NORMAL &&
state() == views::CustomButton::STATE_NORMAL)
- content::RecordAction(UserMetricsAction("AlertIndicatorButton_Dragged"));
+ base::RecordAction(UserMetricsAction("AlertIndicatorButton_Dragged"));
return ret;
}
@@ -248,11 +248,11 @@ void AlertIndicatorButton::NotifyClick(const ui::Event& event) {
// TransitionToAlertState() will be called again, via another code path, to
// set the image to be consistent with the final outcome.
if (alert_state_ == TabAlertState::AUDIO_PLAYING) {
- content::RecordAction(UserMetricsAction("AlertIndicatorButton_Mute"));
+ base::RecordAction(UserMetricsAction("AlertIndicatorButton_Mute"));
TransitionToAlertState(TabAlertState::AUDIO_MUTING);
} else {
DCHECK(alert_state_ == TabAlertState::AUDIO_MUTING);
- content::RecordAction(UserMetricsAction("AlertIndicatorButton_Unmute"));
+ base::RecordAction(UserMetricsAction("AlertIndicatorButton_Unmute"));
TransitionToAlertState(TabAlertState::AUDIO_PLAYING);
}
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698