| Index: chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm
|
| diff --git a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm
|
| index fb9ab45f17fa33b253b49602beaf12b11cbbb307..985ae787e270996acd1bc2665fee93a5d6fd7d41 100644
|
| --- a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm
|
| +++ b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm
|
| @@ -106,10 +106,6 @@ NSColor* HelpLinkColor() {
|
| if (controller_->password_selected()) {
|
| // Draw a highlight under the suggested password.
|
| NSRect highlightBounds = [self passwordBounds];
|
| - highlightBounds.origin.y +=
|
| - PasswordGenerationPopupView::kPasswordVerticalInset;
|
| - highlightBounds.size.height -=
|
| - 2 * PasswordGenerationPopupView::kPasswordVerticalInset;
|
| [[self highlightColor] set];
|
| [NSBezierPath fillRect:highlightBounds];
|
| }
|
| @@ -188,19 +184,20 @@ NSColor* HelpLinkColor() {
|
| }
|
|
|
| - (NSRect)passwordBounds {
|
| - return NSRectFromCGRect(controller_->password_bounds().ToCGRect());
|
| + return NSZeroRect;
|
| }
|
|
|
| - (NSRect)helpBounds {
|
| - return NSRectFromCGRect(controller_->help_bounds().ToCGRect());
|
| + return NSZeroRect;
|
| }
|
|
|
| - (NSRect)dividerBounds {
|
| - return NSRectFromCGRect(controller_->divider_bounds().ToCGRect());
|
| + return NSZeroRect;
|
| }
|
|
|
| - (NSFont*)textFont {
|
| - return controller_->font_list().GetPrimaryFont().GetNativeFont();
|
| + return ResourceBundle::GetSharedInstance().GetFontList(
|
| + ResourceBundle::SmallFont).GetPrimaryFont().GetNativeFont();
|
| }
|
|
|
| @end
|
|
|