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

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

Issue 394403003: Close the password bubble on the icon click. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename the getter Created 6 years, 5 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_icon_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc
index 42457d001978e73f58b838eedd5bac30851dd331..30a40fafe508e48e1b6c91c5221b4753cbdb79d6 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc
@@ -68,3 +68,10 @@ bool ManagePasswordsIconView::IsBubbleShowing() const {
void ManagePasswordsIconView::OnExecuting(
BubbleIconView::ExecuteSource source) {
}
+
+bool ManagePasswordsIconView::OnMousePressed(const ui::MouseEvent& event) {
+ bool result = BubbleIconView::OnMousePressed(event);
+ if (IsBubbleShowing())
+ ManagePasswordsBubbleView::CloseBubble();
+ return result;
+}

Powered by Google App Engine
This is Rietveld 408576698