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

Unified Diff: ash/accelerators/exit_warning_handler.cc

Issue 2099443002: Migrate simple ash Shell metrics users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compile error. 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/frame/caption_buttons/frame_caption_button_container_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/exit_warning_handler.cc
diff --git a/ash/accelerators/exit_warning_handler.cc b/ash/accelerators/exit_warning_handler.cc
index 624a4728bd2340415874325e65861cfce32c30ca..fd3dee2d0ca5e7b8780c03ab23def3270b003569 100644
--- a/ash/accelerators/exit_warning_handler.cc
+++ b/ash/accelerators/exit_warning_handler.cc
@@ -5,7 +5,7 @@
#include "ash/accelerators/exit_warning_handler.h"
#include "ash/common/shell_window_ids.h"
-#include "ash/metrics/user_metrics_recorder.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "base/strings/utf_string_conversions.h"
@@ -114,15 +114,13 @@ void ExitWarningHandler::HandleAccelerator() {
state_ = WAIT_FOR_DOUBLE_PRESS;
Show();
StartTimer();
- Shell::GetInstance()->
- metrics()->RecordUserMetricsAction(UMA_ACCEL_EXIT_FIRST_Q);
+ WmShell::Get()->RecordUserMetricsAction(UMA_ACCEL_EXIT_FIRST_Q);
break;
case WAIT_FOR_DOUBLE_PRESS:
state_ = EXITING;
CancelTimer();
Hide();
- Shell::GetInstance()->
- metrics()->RecordUserMetricsAction(UMA_ACCEL_EXIT_SECOND_Q);
+ WmShell::Get()->RecordUserMetricsAction(UMA_ACCEL_EXIT_SECOND_Q);
shell_delegate->Exit();
break;
case EXITING:
« no previous file with comments | « no previous file | ash/frame/caption_buttons/frame_caption_button_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698