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

Unified Diff: ash/wm/window_cycle_controller.cc

Issue 2096063002: [ash-md] Adds UMA items count and selection depth for Alt+Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Adds UMA items count and selection depth for Alt+Tab (comments) Created 4 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 | « no previous file | ash/wm/window_cycle_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_cycle_controller.cc
diff --git a/ash/wm/window_cycle_controller.cc b/ash/wm/window_cycle_controller.cc
index 5c37562341272bddc6778831ddfdc6f18b982d5b..752b7d7ff126593f99c69c92d8e31ebbcbd1db2b 100644
--- a/ash/wm/window_cycle_controller.cc
+++ b/ash/wm/window_cycle_controller.cc
@@ -96,6 +96,8 @@ void WindowCycleController::StartCycling() {
event_handler_.reset(new WindowCycleEventFilter());
cycle_start_time_ = base::Time::Now();
WmShell::Get()->RecordUserMetricsAction(UMA_WINDOW_CYCLE);
+ UMA_HISTOGRAM_COUNTS_100("Ash.WindowCycleController.Items",
+ window_list.size());
}
//////////////////////////////////////////////////////////////////////////////
@@ -107,6 +109,8 @@ void WindowCycleController::Step(Direction direction) {
}
void WindowCycleController::StopCycling() {
+ UMA_HISTOGRAM_COUNTS_100("Ash.WindowCycleController.SelectionDepth",
+ window_cycle_list_->current_index() + 1);
window_cycle_list_.reset();
WmWindow* active_window_after_window_cycle = GetActiveWindow(
« no previous file with comments | « no previous file | ash/wm/window_cycle_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698