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

Unified Diff: chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc

Issue 870833002: [android] Autofill popup behavior fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update expectations of old test and add a new test. Created 5 years, 11 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/autofill/password_generation_popup_view_views.cc
diff --git a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
index 3718db310bb3f8430b7e4b138b8502ed33ca7523..80fbf8ef39a808352252daa93353f01cb99bd4ea 100644
--- a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
+++ b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
@@ -119,8 +119,8 @@ class PasswordGenerationPopupViewViews::PasswordBox : public views::View {
PasswordGenerationPopupViewViews::PasswordGenerationPopupViewViews(
PasswordGenerationPopupController* controller,
- views::Widget* observing_widget)
- : AutofillPopupBaseView(controller, observing_widget),
+ views::FocusManager* focus_manager)
+ : AutofillPopupBaseView(controller, focus_manager),
password_view_(NULL),
font_list_(ResourceBundle::GetSharedInstance().GetFontList(
ResourceBundle::SmallFont)),
@@ -273,7 +273,8 @@ PasswordGenerationPopupView* PasswordGenerationPopupView::Create(
if (!observing_widget)
return NULL;
- return new PasswordGenerationPopupViewViews(controller, observing_widget);
+ return new PasswordGenerationPopupViewViews(
+ controller, observing_widget->GetFocusManager());
}
void PasswordGenerationPopupViewViews::GetAccessibleState(

Powered by Google App Engine
This is Rietveld 408576698