Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 246393004: Password bubble: Introduce a command to open the bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0c3f0e03892b268c66955b69bbdc2f91b23b30aa..81c6d33ecde7658db0f7d6185f01eaf19b59583b 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
+#include "chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/passwords/manage_password_item_view.h"
@@ -74,6 +75,22 @@ class SavePasswordRefusalComboboxModel : public ui::ComboboxModel {
} // namespace
+// Globals --------------------------------------------------------------------
+
+namespace chrome {
+
+// Defined in 'chrome/browser/ui/browser_dialogs.h'.
Peter Kasting 2014/04/28 20:07:15 Nit: I'd omit this; if you want to keep it, change
+void ShowManagePasswordsBubble(content::WebContents* web_contents) {
+ ManagePasswordsBubbleUIController* controller =
+ ManagePasswordsBubbleUIController::FromWebContents(web_contents);
+ ManagePasswordsBubbleView::ShowBubble(
+ web_contents,
+ controller->manage_passwords_bubble_needs_showing()
+ ? ManagePasswordsBubbleView::AUTOMATIC
+ : ManagePasswordsBubbleView::USER_ACTION);
+}
+
+} // namespace chrome
// ManagePasswordsBubbleView --------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698