| 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 b6e70f74144b786d8f2a5632a7153aea9a18c8fd..c9bdc4b96aca17ed18129b93fc0d7a9366081dd3 100644
|
| --- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
|
| +++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
|
| @@ -160,6 +160,15 @@ void ShowManagePasswordsBubble(content::WebContents* web_contents) {
|
| : ManagePasswordsBubbleView::USER_ACTION);
|
| }
|
|
|
| +void CloseManagePasswordsBubble(content::WebContents* web_contents) {
|
| + if (!ManagePasswordsBubbleView::IsShowing())
|
| + return;
|
| + content::WebContents* bubble_web_contents =
|
| + ManagePasswordsBubbleView::manage_password_bubble()->web_contents();
|
| + if (web_contents == bubble_web_contents)
|
| + ManagePasswordsBubbleView::CloseBubble();
|
| +}
|
| +
|
| } // namespace chrome
|
|
|
|
|
| @@ -771,6 +780,10 @@ bool ManagePasswordsBubbleView::IsShowing() {
|
| manage_passwords_bubble_->GetWidget()->IsVisible();
|
| }
|
|
|
| +content::WebContents* ManagePasswordsBubbleView::web_contents() const {
|
| + return model()->web_contents();
|
| +}
|
| +
|
| ManagePasswordsBubbleView::ManagePasswordsBubbleView(
|
| content::WebContents* web_contents,
|
| ManagePasswordsIconView* anchor_view,
|
|
|