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

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

Issue 381913002: Revert 281809 "Password bubble: Don't focus by default." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
===================================================================
--- trunk/src/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (revision 282324)
+++ trunk/src/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc (working copy)
@@ -434,11 +434,6 @@
NULL;
// static
-const ManagePasswordsBubbleView* ManagePasswordsBubbleView::Bubble() {
- return ManagePasswordsBubbleView::manage_passwords_bubble_;
-}
-
-// static
void ManagePasswordsBubbleView::ShowBubble(content::WebContents* web_contents,
DisplayReason reason) {
Browser* browser = chrome::FindBrowserWithWebContents(web_contents);
@@ -499,8 +494,7 @@
never_save_passwords_(false) {
// Compensate for built-in vertical padding in the anchor view's image.
set_anchor_view_insets(gfx::Insets(2, 0, 2, 0));
- // Don't focus by default.
- set_use_focusless(true);
+ set_notify_enter_exit_on_child(true);
if (anchor_view)
anchor_view->SetActive(true);
}

Powered by Google App Engine
This is Rietveld 408576698