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

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

Issue 2020623004: ash: Move shelf alignment and auto-hide calls from Shell to Shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 819ac8c5681226839d2109434596995ed5149ba4..a18df9cc702f03db162c1df67b70be3c612cc384 100644
--- a/chrome/browser/chromeos/first_run/steps/tray_step.cc
+++ b/chrome/browser/chromeos/first_run/steps/tray_step.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/chromeos/first_run/steps/tray_step.h"
#include "ash/first_run/first_run_helper.h"
-#include "ash/shell.h"
+#include "ash/shelf/shelf.h"
#include "base/i18n/rtl.h"
#include "chrome/browser/chromeos/first_run/step_names.h"
#include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h"
@@ -27,9 +27,8 @@ void TrayStep::DoShow() {
bounds.height());
FirstRunActor::StepPosition position;
position.SetTop(bounds.y());
- ash::Shell* shell = ash::Shell::GetInstance();
ash::wm::ShelfAlignment alignment =
- shell->GetShelfAlignment(shell->GetPrimaryRootWindow());
+ ash::Shelf::ForPrimaryDisplay()->alignment();
if ((!base::i18n::IsRTL() && alignment != ash::wm::SHELF_ALIGNMENT_LEFT) ||
alignment == ash::wm::SHELF_ALIGNMENT_RIGHT)
position.SetRight(GetOverlaySize().width() - bounds.x());

Powered by Google App Engine
This is Rietveld 408576698