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

Unified Diff: chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.mm

Issue 1610653002: Integrate the account chooser dialog on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 11 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/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 {

Powered by Google App Engine
This is Rietveld 408576698