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

Unified Diff: ash/shell.cc

Issue 1153633006: Added UMA statistics for changing the active window via click or touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added the missed desktop_task_switch_metric_recorder files. 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
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 8393cda6f98449a3e0b06a32a869033797fd1305..502f6711a36b47b4cd47b6777052781ba28a627b 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -660,6 +660,8 @@ Shell::Shell(ShellDelegate* delegate)
Shell::~Shell() {
TRACE_EVENT0("shutdown", "ash::Shell::Destructor");
+ user_metrics_recorder_->OnShellShuttingDown();
+
delegate_->PreShutdown();
views::FocusManagerFactory::Install(NULL);
@@ -1085,6 +1087,8 @@ void Shell::Init(const ShellInitParams& init_params) {
// order to create mirror window. Run it after the main message loop
// is started.
display_manager_->CreateMirrorWindowAsyncIfAny();
+
+ user_metrics_recorder_->OnShellInitialized();
}
void Shell::InitKeyboard() {

Powered by Google App Engine
This is Rietveld 408576698