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

Unified Diff: chrome/browser/ui/autofill/password_generation_popup_controller_impl.h

Issue 2762233004: Fix autofill popup controller key press callback registration (Closed)
Patch Set: Fix typo Created 3 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/autofill/password_generation_popup_controller_impl.h
diff --git a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.h b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
index 108ad97dd1af472cecad8b03806591ca11818368..168a6d900bbc8cb6e45648c304a59b60f939837e 100644
--- a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
+++ b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
@@ -71,11 +71,6 @@ class PasswordGenerationPopupControllerImpl
// Hides the popup and destroys |this|.
void HideAndDestroy();
- // Accessors.
- content::WebContents* web_contents() {
- return controller_common_.web_contents();
- }
-
protected:
PasswordGenerationPopupControllerImpl(
const gfx::RectF& bounds,
@@ -141,8 +136,8 @@ class PasswordGenerationPopupControllerImpl
// Controls how passwords are generated.
std::unique_ptr<PasswordGenerator> generator_;
- // Contains common popup functionality.
- PopupControllerCommon controller_common_;
+ // Contains common popup data.
+ const PopupControllerCommon controller_common_;
// Help text and the range in the text that corresponds to the saved passwords
// link.
@@ -160,6 +155,8 @@ class PasswordGenerationPopupControllerImpl
PopupViewCommon view_common_;
+ content::WebContents* const web_contents_;
+
base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl);

Powered by Google App Engine
This is Rietveld 408576698