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

Unified Diff: ash/common/system/web_notification/web_notification_tray.cc

Issue 2602143002: CrOS - Fix position of notification bubble for lock screen. (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/web_notification/web_notification_tray.cc
diff --git a/ash/common/system/web_notification/web_notification_tray.cc b/ash/common/system/web_notification/web_notification_tray.cc
index 351fd4412253ed8c436a48b3afd157b2f7cc0923..9fe9c2aaa19fa1b4e7c07bcdbd63f2bebd364d9b 100644
--- a/ash/common/system/web_notification/web_notification_tray.cc
+++ b/ash/common/system/web_notification/web_notification_tray.cc
@@ -379,7 +379,7 @@ bool WebNotificationTray::ShowMessageCenterInternal(bool show_settings) {
// For vertical shelf alignments, anchor to the WebNotificationTray, but for
// horizontal (i.e. bottom) shelves, anchor to the system tray.
TrayBackgroundView* anchor_tray = this;
- if (shelf_alignment() == SHELF_ALIGNMENT_BOTTOM) {
+ if (IsHorizontalAlignment(shelf_alignment())) {
anchor_tray = WmShelf::ForWindow(status_area_window_)
->GetStatusAreaWidget()
->system_tray();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698