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

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

Issue 2901273003: chromeos: Remove TrayBubbleView::Delegate::OnBeforeBubbleWidgetInit (Closed)
Patch Set: nit 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_background_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e740202cb4ab1765e845c638d8d7f80f1fe9c277 100644
--- a/ash/system/tray/system_tray_bubble.cc
+++ b/ash/system/tray/system_tray_bubble.cc
@@ -196,7 +196,11 @@ void SystemTrayBubble::InitView(views::View* anchor,
init_params->max_height = GetDetailedBubbleMaxHeight();
}
- bubble_view_ = TrayBubbleView::Create(anchor, tray_, init_params);
+ init_params->delegate = tray_;
+ // Place the bubble on same display as this system tray.
+ init_params->parent_window = tray_->GetBubbleWindowContainer();
+ init_params->anchor_view = anchor;
+ bubble_view_ = new TrayBubbleView(*init_params);
UpdateBottomPadding();
bubble_view_->set_adjust_if_offscreen(false);
CreateItemViews(login_status);
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698