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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_controller.mm

Issue 2464063002: Revert of Some more pre-material cleanups (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/infobars/infobar_controller.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
index 14e753a4639ab8fba0e6def91325d8edeeff23a8..2d14656cb35356c96af0f55a31891770862cdbb3 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
@@ -75,8 +75,8 @@
// Infobars are drawn a little taller, so have to move its controls to keep
// them centered.
- // TODO(ellyjones): Remove this constant.
- CGFloat heightDelta = 2;
+ CGFloat heightDelta = InfoBarContainerDelegate::kDefaultBarTargetHeightMd -
+ InfoBarContainerDelegate::kDefaultBarTargetHeight;
for (NSView* nextSubview in [infoBarView_ subviews]) {
NSRect frame = [nextSubview frame];
frame.origin.y += heightDelta / 2;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698