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

Unified Diff: chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.mm

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/cocoa/tabs/alert_indicator_button_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.mm b/chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.mm
index 2181d66b00c78f0ecff6652940287d49ae424511..747fe85f41cd716a8ab4d8851b39cb636a79d66f 100644
--- a/chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.mm
+++ b/chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.mm
@@ -7,10 +7,10 @@
#include "base/logging.h"
#include "base/mac/foundation_util.h"
#include "base/macros.h"
+#include "base/metrics/user_metrics.h"
#include "base/threading/thread_task_runner_handle.h"
#import "chrome/browser/ui/cocoa/l10n_util.h"
#import "chrome/browser/ui/cocoa/tabs/tab_view.h"
-#include "content/public/browser/user_metrics.h"
#include "ui/gfx/animation/animation.h"
#include "ui/gfx/animation/animation_delegate.h"
#include "ui/gfx/image/image.h"
@@ -241,11 +241,11 @@ class FadeAnimationDelegate : public gfx::AnimationDelegate {
// set the image to be consistent with the final outcome.
using base::UserMetricsAction;
if (alertState_ == TabAlertState::AUDIO_PLAYING) {
- content::RecordAction(UserMetricsAction("AlertIndicatorButton_Mute"));
+ base::RecordAction(UserMetricsAction("AlertIndicatorButton_Mute"));
[self transitionToAlertState:TabAlertState::AUDIO_MUTING];
} else {
DCHECK(alertState_ == TabAlertState::AUDIO_MUTING);
- content::RecordAction(UserMetricsAction("AlertIndicatorButton_Unmute"));
+ base::RecordAction(UserMetricsAction("AlertIndicatorButton_Unmute"));
[self transitionToAlertState:TabAlertState::AUDIO_PLAYING];
}
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698