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

Unified Diff: ash/shelf/shelf_alignment_menu.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 years, 8 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/shelf/shelf_alignment_menu.cc
diff --git a/ash/shelf/shelf_alignment_menu.cc b/ash/shelf/shelf_alignment_menu.cc
index 0360e4944304314e06abf70542bf86b3addddd1c..e01b2639c91de1f867627d91c0590300fba1ad61 100644
--- a/ash/shelf/shelf_alignment_menu.cc
+++ b/ash/shelf/shelf_alignment_menu.cc
@@ -7,8 +7,8 @@
#include "ash/metrics/user_metrics_action.h"
#include "ash/public/cpp/shelf_types.h"
#include "ash/shelf/wm_shelf.h"
+#include "ash/shell_port.h"
#include "ash/strings/grit/ash_strings.h"
-#include "ash/wm_shell.h"
namespace ash {
@@ -46,18 +46,17 @@ bool ShelfAlignmentMenu::IsCommandIdEnabled(int command_id) const {
}
void ShelfAlignmentMenu::ExecuteCommand(int command_id, int event_flags) {
- WmShell* shell = WmShell::Get();
switch (static_cast<MenuItem>(command_id)) {
case MENU_ALIGN_LEFT:
- shell->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_LEFT);
+ ShellPort::Get()->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_LEFT);
wm_shelf_->SetAlignment(SHELF_ALIGNMENT_LEFT);
break;
case MENU_ALIGN_BOTTOM:
- shell->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_BOTTOM);
+ ShellPort::Get()->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_BOTTOM);
wm_shelf_->SetAlignment(SHELF_ALIGNMENT_BOTTOM);
break;
case MENU_ALIGN_RIGHT:
- shell->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_RIGHT);
+ ShellPort::Get()->RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_RIGHT);
wm_shelf_->SetAlignment(SHELF_ALIGNMENT_RIGHT);
break;
}

Powered by Google App Engine
This is Rietveld 408576698