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

Unified Diff: ash/common/system/tray/system_tray.cc

Issue 2162153002: Added Ash.SystemMenu.DefaultView.VisibleItems histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed ash_unittests compile errors. 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
Index: ash/common/system/tray/system_tray.cc
diff --git a/ash/common/system/tray/system_tray.cc b/ash/common/system/tray/system_tray.cc
index 73c0ba6a0762e3b6f8983c5b3863161e5147f85c..979e3a197bf51a66dbd25c7795bd57f0adfe2872 100644
--- a/ash/common/system/tray/system_tray.cc
+++ b/ash/common/system/tray/system_tray.cc
@@ -751,6 +751,8 @@ void SystemTray::CloseSystemBubbleAndDeactivateSystemTray() {
void SystemTray::RecordSystemMenuMetrics() {
DCHECK(system_bubble_);
+ system_bubble_->bubble()->RecordVisibleRowMetrics();
+
TrayBubbleView* bubble_view = system_bubble_->bubble_view();
int num_rows = 0;
for (int i = 0; i < bubble_view->child_count(); i++) {

Powered by Google App Engine
This is Rietveld 408576698