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

Unified Diff: ash/system/cast/tray_cast.cc

Issue 1169833006: Add metrics for when a cast is started or stopped from the system tray. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 years, 6 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
« no previous file with comments | « ash/metrics/user_metrics_recorder.cc ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/cast/tray_cast.cc
diff --git a/ash/system/cast/tray_cast.cc b/ash/system/cast/tray_cast.cc
index 14d47a7ea718d61e53d58f20aae2b9e1d0ec405d..de8d68040e3b7efb3a5b4997994d1e3b1a0cd1ef 100644
--- a/ash/system/cast/tray_cast.cc
+++ b/ash/system/cast/tray_cast.cc
@@ -224,6 +224,8 @@ void CastCastView::UpdateLabelCallback(
void CastCastView::ButtonPressed(views::Button* sender,
const ui::Event& event) {
+ Shell::GetInstance()->metrics()->RecordUserMetricsAction(
achuithb 2015/06/10 19:07:27 nit: Let's make this the last statement in this fu
jdufault 2015/06/10 19:09:41 Done.
+ ash::UMA_STATUS_AREA_CAST_STOP_CAST);
DCHECK(sender == stop_button_);
cast_config_delegate_->StopCasting();
}
@@ -498,6 +500,8 @@ void CastDetailedView::OnViewClicked(views::View* sender) {
auto it = receiver_activity_map_.find(sender);
if (it != receiver_activity_map_.end()) {
cast_config_delegate_->CastToReceiver(it->second);
+ Shell::GetInstance()->metrics()->RecordUserMetricsAction(
+ ash::UMA_STATUS_AREA_DETAILED_CAST_VIEW_LAUNCH_CAST);
}
}
}
« no previous file with comments | « ash/metrics/user_metrics_recorder.cc ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698