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

Unified Diff: chrome/browser/chromeos/first_run/steps/tray_step.cc

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase Created 4 years, 4 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/chromeos/first_run/steps/tray_step.cc
diff --git a/chrome/browser/chromeos/first_run/steps/tray_step.cc b/chrome/browser/chromeos/first_run/steps/tray_step.cc
index 4e4192c7e05a5dfa03e1842566333420307cb9c1..e232d32d96b632eae3f662a37c911adeb4b7a84b 100644
--- a/chrome/browser/chromeos/first_run/steps/tray_step.cc
+++ b/chrome/browser/chromeos/first_run/steps/tray_step.cc
@@ -4,8 +4,8 @@
#include "chrome/browser/chromeos/first_run/steps/tray_step.h"
-#include "ash/common/shelf/shelf.h"
#include "ash/common/shelf/wm_shelf.h"
+#include "ash/common/wm_shell.h"
#include "ash/first_run/first_run_helper.h"
#include "base/i18n/rtl.h"
#include "chrome/browser/chromeos/first_run/step_names.h"
@@ -29,7 +29,8 @@ void TrayStep::DoShow() {
FirstRunActor::StepPosition position;
position.SetTop(bounds.y());
ash::ShelfAlignment alignment =
- ash::Shelf::ForPrimaryDisplay()->wm_shelf()->alignment();
+ ash::WmShelf::ForWindow(ash::WmShell::Get()->GetPrimaryRootWindow())
msw 2016/08/30 22:02:07 aside: maybe we should do this elsewhere instead o
James Cook 2016/08/30 23:00:57 I cleaned up the other ones to call WmShelf::ForWi
+ ->alignment();
if ((!base::i18n::IsRTL() && alignment != ash::SHELF_ALIGNMENT_LEFT) ||
alignment == ash::SHELF_ALIGNMENT_RIGHT)
position.SetRight(GetOverlaySize().width() - bounds.x());

Powered by Google App Engine
This is Rietveld 408576698