summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/browser_bubble_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/browser_bubble_win.cc')
-rw-r--r--chrome/browser/ui/views/browser_bubble_win.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/ui/views/browser_bubble_win.cc b/chrome/browser/ui/views/browser_bubble_win.cc
index 8392bd381..16b4266 100644
--- a/chrome/browser/ui/views/browser_bubble_win.cc
+++ b/chrome/browser/ui/views/browser_bubble_win.cc
@@ -109,16 +109,19 @@ void BrowserBubble::InitPopup() {
// popup_ is a Widget, but we need to do some WidgetWin stuff first, then
// we'll assign it into popup_.
BubbleWidget* pop = new BubbleWidget(this);
+ popup_ = pop;
BorderWidgetWin* border_widget = pop->border_widget();
- border_widget->Init(new BorderContents, frame_->GetNativeView());
+ border_widget->InitBorderWidgetWin(new BorderContents,
+ frame_->GetNativeView());
// We make the BorderWidgetWin the owner of the Bubble HWND, so that the
// latter is displayed on top of the former.
- pop->Init(border_widget->GetNativeView(), gfx::Rect());
- pop->SetContentsView(view_);
+ views::Widget::CreateParams params(views::Widget::CreateParams::TYPE_POPUP);
+ params.parent = border_widget->GetNativeView();
+ popup_->Init(params);
+ popup_->SetContentsView(view_);
- popup_ = pop;
ResizeToView();
Reposition();