| Index: chrome/browser/ui/views/app_list/linux/app_list_linux.cc
|
| diff --git a/chrome/browser/ui/views/app_list/linux/app_list_linux.cc b/chrome/browser/ui/views/app_list/linux/app_list_linux.cc
|
| index e513121756ca360d80d6c8c1d15a30898d603dbf..278d37404566626a2d23d9a900c0929a852eb849 100644
|
| --- a/chrome/browser/ui/views/app_list/linux/app_list_linux.cc
|
| +++ b/chrome/browser/ui/views/app_list/linux/app_list_linux.cc
|
| @@ -53,12 +53,11 @@
|
| gfx::Point AppListLinux::FindAnchorPoint(const gfx::Size& view_size,
|
| const gfx::Display& display,
|
| const gfx::Point& cursor,
|
| - AppListPositioner::ScreenEdge edge,
|
| - bool center_window) {
|
| + AppListPositioner::ScreenEdge edge) {
|
| AppListPositioner positioner(display, view_size, 0);
|
|
|
| // Special case for app list in the center of the screen.
|
| - if (center_window)
|
| + if (app_list::switches::IsCenteredAppListEnabled())
|
| return positioner.GetAnchorPointForScreenCenter();
|
|
|
| gfx::Point anchor;
|
| @@ -102,9 +101,6 @@
|
| edge = AppListPositioner::SCREEN_EDGE_LEFT;
|
| else
|
| edge = ShelfLocationInDisplay(display);
|
| - view->SetAnchorPoint(FindAnchorPoint(view->GetPreferredSize(),
|
| - display,
|
| - cursor,
|
| - edge,
|
| - view->ShouldCenterWindow()));
|
| + view->SetAnchorPoint(
|
| + FindAnchorPoint(view->GetPreferredSize(), display, cursor, edge));
|
| }
|
|
|