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

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: The bigger picture. 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..aef7187ce1115d609f4f5324ea921846882e13c8 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
Peter Kasting 2014/04/25 22:12:02 Nit: One more newline here, and above the "ManageP
Mike West 2014/04/28 10:52:56 Done.
Peter Kasting 2014/04/28 20:07:14 Doesn't look like this actually happened.
+// browser_dialog -------------------------------------------------------------
vabr (Chromium) 2014/04/25 15:26:17 nit: This is not entirely clear to me -- it does n
Peter Kasting 2014/04/25 22:12:02 I'd probably call the divider "Globals" instead.
Mike West 2014/04/28 10:52:56 Done.
+
+namespace chrome {
+
+void ShowManagePasswordsBubble(content::WebContents* web_contents) {
+ ManagePasswordsBubbleUIController* controller =
Peter Kasting 2014/04/25 22:12:02 Nit: Whole function should be indented 2, not 4
Mike West 2014/04/28 10:52:56 Done.
+ 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);
Peter Kasting 2014/04/25 22:12:02 Nit: Wrap/indent like: ManagePasswordsBubbleVie
Mike West 2014/04/28 10:52:56 Done.
Peter Kasting 2014/04/28 20:07:14 The wrapping is still wrong here. Operators go on
+}
+
+} // namespace chrome
// ManagePasswordsBubbleView --------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698