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); |