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

Unified Diff: ash/app_list/app_list_presenter_delegate.cc

Issue 2588103004: Apply new WM shadows to app list. (Closed)
Patch Set: remove references on testing bots Created 4 years 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
« no previous file with comments | « BUILD.gn ('k') | chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/app_list_presenter_delegate.cc
diff --git a/ash/app_list/app_list_presenter_delegate.cc b/ash/app_list/app_list_presenter_delegate.cc
index b4d2c3ab28bf698a6e411e1dffd462c1a25dba32..a9d89e15986376b27089b1d9ae16c2897a0343a8 100644
--- a/ash/app_list/app_list_presenter_delegate.cc
+++ b/ash/app_list/app_list_presenter_delegate.cc
@@ -122,11 +122,7 @@ void AppListPresenterDelegate::Init(app_list::AppListView* view,
container, current_apps_page,
ScreenUtil::GetDisplayWorkAreaBoundsInParent(container));
} else {
- // Note: We can't center the app list until we have its dimensions, so we
- // init at (0, 0) and then reset its anchor point.
- view->InitAsBubbleAtFixedLocation(container, current_apps_page,
- gfx::Point(), views::BubbleBorder::FLOAT,
- true /* border_accepts_events */);
+ view->InitAsBubble(container, current_apps_page);
// The app list is centered over the display of the app list button that was
// pressed (if triggered via keyboard, this is the display with the
// currently focused window).
« no previous file with comments | « BUILD.gn ('k') | chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698