Index: chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.mm |
diff --git a/chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.mm b/chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.mm |
index 309812008bd913c6dd12039ac70e30a0df45f2d3..1703880cad2618e9eee84eec56035fdbd7ae9ddf 100644 |
--- a/chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.mm |
+++ b/chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.mm |
@@ -6,6 +6,7 @@ |
#include "base/logging.h" |
#include "base/mac/scoped_nsobject.h" |
+#import "chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h" |
@implementation ManagePasswordsBubbleContentViewController |
@@ -22,17 +23,11 @@ |
toView:(NSView*)view |
target:(id)target |
action:(SEL)action { |
- base::scoped_nsobject<NSButton> button( |
- [[NSButton alloc] initWithFrame:NSZeroRect]); |
- [button setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; |
- [button setTitle:title]; |
- [button setBezelStyle:NSRoundedBezelStyle]; |
- [[button cell] setControlSize:NSSmallControlSize]; |
+ NSButton* button = DialogButton(title); |
[button setTarget:target]; |
[button setAction:action]; |
- [button sizeToFit]; |
- [view addSubview:button.get()]; |
- return button.autorelease(); |
+ [view addSubview:button]; |
+ return button; |
} |
- (NSTextField*)addTitleLabel:(NSString*)title toView:(NSView*)view { |