Index: ash/wm/app_list_controller.cc |
diff --git a/ash/wm/app_list_controller.cc b/ash/wm/app_list_controller.cc |
index 6839cc4579ada864f193b4cb486a7ec6cac77906..0953db825c5241788dd86f6786558d154349bce9 100644 |
--- a/ash/wm/app_list_controller.cc |
+++ b/ash/wm/app_list_controller.cc |
@@ -183,7 +183,7 @@ void AppListController::SetVisible(bool visible, aura::Window* window) { |
aura::Window* root_window = window->GetRootWindow(); |
aura::Window* container = GetRootWindowController(root_window)-> |
GetContainer(kShellWindowId_AppListContainer); |
- is_centered_ = app_list::switches::IsCenteredAppListEnabled(); |
+ is_centered_ = view->ShouldCenterWindow(); |
if (is_centered_) { |
// The experimental app list is centered over the primary display. |
view->InitAsBubbleAtFixedLocation( |