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

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

Issue 2272793005: ash: Move alignment and autohide behavior from Shelf to WmShelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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 b6305ca3cc99393b3d1e91d105ed50b44d71ca93..4e4192c7e05a5dfa03e1842566333420307cb9c1 100644
--- a/chrome/browser/chromeos/first_run/steps/tray_step.cc
+++ b/chrome/browser/chromeos/first_run/steps/tray_step.cc
@@ -5,6 +5,7 @@
#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/first_run/first_run_helper.h"
#include "base/i18n/rtl.h"
#include "chrome/browser/chromeos/first_run/step_names.h"
@@ -27,7 +28,8 @@ void TrayStep::DoShow() {
bounds.height());
FirstRunActor::StepPosition position;
position.SetTop(bounds.y());
- ash::ShelfAlignment alignment = ash::Shelf::ForPrimaryDisplay()->alignment();
+ ash::ShelfAlignment alignment =
+ ash::Shelf::ForPrimaryDisplay()->wm_shelf()->alignment();
if ((!base::i18n::IsRTL() && alignment != ash::SHELF_ALIGNMENT_LEFT) ||
alignment == ash::SHELF_ALIGNMENT_RIGHT)
position.SetRight(GetOverlaySize().width() - bounds.x());
« no previous file with comments | « ash/wm/workspace_controller_unittest.cc ('k') | chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698