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 0c12b674779321fb445f2618f5ecc060e294bc4b..d6a8ae639931ece387819a4ae6096589a9fd4bd9 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -51,6 +51,7 @@ |
#include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
#include "chrome/browser/ui/omnibox/omnibox_popup_view.h" |
#include "chrome/browser/ui/omnibox/omnibox_view.h" |
+#include "chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.h" |
#include "chrome/browser/ui/search/search_delegate.h" |
#include "chrome/browser/ui/search/search_model.h" |
#include "chrome/browser/ui/search/search_ui.h" |
@@ -78,6 +79,7 @@ |
#include "chrome/browser/ui/views/location_bar/location_icon_view.h" |
#include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" |
#include "chrome/browser/ui/views/password_generation_bubble_view.h" |
+#include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" |
#include "chrome/browser/ui/views/profiles/avatar_menu_bubble_view.h" |
#include "chrome/browser/ui/views/profiles/avatar_menu_button.h" |
#include "chrome/browser/ui/views/profiles/profile_chooser_view.h" |
@@ -1204,6 +1206,17 @@ void BrowserView::ShowTranslateBubble(content::WebContents* web_contents, |
error_type); |
} |
+void BrowserView::ShowManagePasswordsBubble( |
+ content::WebContents* web_contents) { |
+ ManagePasswordsBubbleUIController* controller = |
+ ManagePasswordsBubbleUIController::FromWebContents(web_contents); |
+ bool is_automatic_display = |
+ controller->manage_passwords_bubble_needs_showing(); |
+ ManagePasswordsBubbleView::ShowBubble(web_contents, |
+ is_automatic_display ? ManagePasswordsBubbleView::AUTOMATIC |
+ : ManagePasswordsBubbleView::USER_ACTION); |
+} |
+ |
#if defined(ENABLE_ONE_CLICK_SIGNIN) |
void BrowserView::ShowOneClickSigninBubble( |
OneClickSigninBubbleType type, |