Index: chrome/browser/ui/views/frame/browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
index eff052e4305da3b3e31d03d0ebde8abca37316e3..f24de2c25b2c672dee1b9c3ef47645268ecc7d1c 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -2403,7 +2403,9 @@ void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
button->ShowAvatarBubble(); |
} |
-void BrowserView::ShowPasswordGenerationBubble(const gfx::Rect& rect) { |
+void BrowserView::ShowPasswordGenerationBubble( |
+ const gfx::Rect& rect, |
+ autofill::PasswordGenerator* password_generator) { |
// Create a rect in the content bounds that the bubble will point to. |
gfx::Point origin(rect.origin()); |
views::View::ConvertPointToScreen(GetTabContentsContainerView(), &origin); |
@@ -2417,7 +2419,8 @@ void BrowserView::ShowPasswordGenerationBubble(const gfx::Rect& rect) { |
PasswordGenerationBubbleView* bubble = |
new PasswordGenerationBubbleView(bounds, |
this, |
- web_contents->GetRenderViewHost()); |
+ web_contents->GetRenderViewHost(), |
+ password_generator); |
views::BubbleDelegateView::CreateBubble(bubble); |
bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
bubble->Show(); |