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

Unified Diff: ash/system/tray/system_tray_bubble.cc

Issue 2901273003: chromeos: Remove TrayBubbleView::Delegate::OnBeforeBubbleWidgetInit (Closed)
Patch Set: cleanup Created 3 years, 7 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: ash/system/tray/system_tray_bubble.cc
diff --git a/ash/system/tray/system_tray_bubble.cc b/ash/system/tray/system_tray_bubble.cc
index d712b2566316f6303d1f2f2182470b0fdbd45a88..254f1ebf8d9d1e6aea6e57a470f3bbbb1abf6f6f 100644
--- a/ash/system/tray/system_tray_bubble.cc
+++ b/ash/system/tray/system_tray_bubble.cc
@@ -196,7 +196,9 @@ void SystemTrayBubble::InitView(views::View* anchor,
init_params->max_height = GetDetailedBubbleMaxHeight();
}
- bubble_view_ = TrayBubbleView::Create(anchor, tray_, init_params);
+ // Place the bubble on same display as this system tray.
+ bubble_view_ = new TrayBubbleView(tray_->GetBubbleWindowContainer(), anchor,
+ tray_, *init_params);
UpdateBottomPadding();
bubble_view_->set_adjust_if_offscreen(false);
CreateItemViews(login_status);

Powered by Google App Engine
This is Rietveld 408576698