summaryrefslogtreecommitdiffstats
path: root/chrome/browser/login_prompt_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/login_prompt_mac.mm')
-rw-r--r--chrome/browser/login_prompt_mac.mm10
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/login_prompt_mac.mm b/chrome/browser/login_prompt_mac.mm
index 2264c26..8a9e93c 100644
--- a/chrome/browser/login_prompt_mac.mm
+++ b/chrome/browser/login_prompt_mac.mm
@@ -362,12 +362,10 @@ LoginHandler* LoginHandler::Create(URLRequest* request, MessageLoop* ui_loop) {
sizeToFitFixedWidthTextField:explanationField_];
// Resize the window (no shifting needed due to window layout).
- NSWindow* window = [self window];
- [[window contentView] setAutoresizesSubviews:NO];
- NSRect rect = [window frame];
- rect.size.height = rect.size.height + explanationShift;
- [window setFrame:rect display:NO];
- [[window contentView] setAutoresizesSubviews:YES];
+ NSSize windowDelta = NSMakeSize(0, explanationShift);
+ [GTMUILocalizerAndLayoutTweaker
+ resizeWindowWithoutAutoResizingSubViews:[self window]
+ delta:windowDelta];
}
@end