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

Unified Diff: chrome/browser/ui/ash/launcher/launcher_context_menu.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
Index: chrome/browser/ui/ash/launcher/launcher_context_menu.cc
diff --git a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
index bf3b835ea8e986be368ba82b5d0bba5aa950cf00..91b7d27106f692b62150be936c7359979c5b2284 100644
--- a/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
+++ b/chrome/browser/ui/ash/launcher/launcher_context_menu.cc
@@ -8,8 +8,8 @@
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shelf/wm_shelf.h"
+#include "ash/common/wm_shell.h"
#include "ash/desktop_background/user_wallpaper_delegate.h"
-#include "ash/metrics/user_metrics_recorder.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
#include "build/build_config.h"
@@ -130,7 +130,7 @@ void LauncherContextMenu::ExecuteCommand(int command_id, int event_flags) {
// TODO(simonhong): Use ShelfItemDelegate::Close().
controller_->Close(item_.id);
}
- ash::Shell::GetInstance()->metrics()->RecordUserMetricsAction(
+ ash::WmShell::Get()->RecordUserMetricsAction(
ash::UMA_CLOSE_THROUGH_CONTEXT_MENU);
break;
case MENU_PIN:
@@ -188,7 +188,7 @@ void LauncherContextMenu::AddShelfOptionsMenu() {
IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE);
}
if (ash::ShelfWidget::ShelfAlignmentAllowed() &&
- !ash::Shell::GetInstance()->session_state_delegate()->IsScreenLocked()) {
+ !ash::WmShell::Get()->GetSessionStateDelegate()->IsScreenLocked()) {
AddSubMenuWithStringId(MENU_ALIGNMENT_MENU,
IDS_ASH_SHELF_CONTEXT_MENU_POSITION,
&shelf_alignment_menu_);
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_manager.cc ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698