| Index: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
|
| diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
|
| index cd0238673a73da09b1bf330b4ee2ae17b5ff2437..469172105fa83337d0657769a9ab5296083f190c 100644
|
| --- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
|
| +++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
|
| @@ -752,7 +752,9 @@ void ManagePasswordsBubbleView::ShowBubble(
|
| if (is_fullscreen)
|
| manage_passwords_bubble_->set_parent_window(web_contents->GetNativeView());
|
|
|
| - views::BubbleDelegateView::CreateBubble(manage_passwords_bubble_);
|
| + views::Widget* manage_passwords_bubble_widget =
|
| + views::BubbleDelegateView::CreateBubble(manage_passwords_bubble_);
|
| + manage_passwords_bubble_widget->AddObserver(anchor_view);
|
|
|
| // Adjust for fullscreen after creation as it relies on the content size.
|
| if (is_fullscreen) {
|
| @@ -782,13 +784,12 @@ content::WebContents* ManagePasswordsBubbleView::web_contents() const {
|
|
|
| ManagePasswordsBubbleView::ManagePasswordsBubbleView(
|
| content::WebContents* web_contents,
|
| - ManagePasswordsIconViews* anchor_view,
|
| + views::View* anchor_view,
|
| DisplayReason reason)
|
| : LocationBarBubbleDelegateView(anchor_view, web_contents),
|
| model_(web_contents,
|
| reason == AUTOMATIC ? ManagePasswordsBubbleModel::AUTOMATIC
|
| : ManagePasswordsBubbleModel::USER_ACTION),
|
| - anchor_view_(anchor_view),
|
| initially_focused_view_(nullptr) {
|
| // Compensate for built-in vertical padding in the anchor view's image.
|
| set_anchor_view_insets(gfx::Insets(5, 0, 5, 0));
|
|
|