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

Unified Diff: ash/common/system/update/tray_update.cc

Issue 2125403002: Added UMA metrics for the system update UI in the status area. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into uma_update Created 4 years, 5 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/common/metrics/user_metrics_action.h ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/update/tray_update.cc
diff --git a/ash/common/system/update/tray_update.cc b/ash/common/system/update/tray_update.cc
index e72bd809078d22424542e2573ceebe0edca56946..5da745c35d206208bff6156889bbf4d24a4ce669 100644
--- a/ash/common/system/update/tray_update.cc
+++ b/ash/common/system/update/tray_update.cc
@@ -4,6 +4,7 @@
#include "ash/common/system/update/tray_update.h"
+#include "ash/common/metrics/user_metrics_action.h"
#include "ash/common/system/tray/fixed_sized_image_view.h"
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/system/tray/system_tray_notifier.h"
@@ -74,6 +75,8 @@ class UpdateView : public ActionableView {
// Overridden from ActionableView.
bool PerformAction(const ui::Event& event) override {
WmShell::Get()->system_tray_delegate()->RequestRestartForUpdate();
+ WmShell::Get()->RecordUserMetricsAction(
+ UMA_STATUS_AREA_OS_UPDATE_DEFAULT_SELECTED);
return true;
}
« no previous file with comments | « ash/common/metrics/user_metrics_action.h ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698