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 2979d422cf131d05ecf05e065cfd6717d82d0172..e426723e63b3aabb019304276ffd29a16832f09b 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 |
@@ -25,7 +25,6 @@ namespace { |
// The amount of whitespace that is present when there is no padding. Used |
// to get the proper spacing in the help section. |
const int kHelpVerticalOffset = 5; |
-const int kPasswordSectionHeight = 62; |
// Wrapper around just the text portions of the generation UI (password and |
// prompting text). |
@@ -173,7 +172,8 @@ gfx::Size PasswordGenerationPopupViewViews::GetPreferredSizeOfPasswordView() { |
int height = kPopupBorderThickness; |
if (controller_->display_password()) { |
// Add divider height as well. |
- height += kPasswordSectionHeight + 1; |
+ height += |
+ PasswordGenerationPopupController::kPopupPasswordSectionHeight + 1; |
} |
int width = controller_->GetMinimumWidth(); |
int popup_width = width - 2 * kPopupBorderThickness; |