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

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

Issue 2403853002: cocoa browser: remove remaining non-MD code (Closed)
Patch Set: git cl format Created 4 years, 2 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/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 466ad70f7c341e59937c9cd19400c0670aa2e8f4..2d14656cb35356c96af0f55a31891770862cdbb3 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
@@ -73,16 +73,14 @@ - (void)awakeFromNib {
[self addAdditionalControls];
- // With Material Design infobars are drawn a little taller, so have to move
- // its controls to keep them centered.
- if (ui::MaterialDesignController::IsModeMaterial()) {
- CGFloat heightDelta = InfoBarContainerDelegate::kDefaultBarTargetHeightMd -
- InfoBarContainerDelegate::kDefaultBarTargetHeight;
- for (NSView* nextSubview in [infoBarView_ subviews]) {
- NSRect frame = [nextSubview frame];
- frame.origin.y += heightDelta / 2;
- [nextSubview setFrame:frame];
- }
+ // Infobars are drawn a little taller, so have to move its controls to keep
+ // them centered.
+ CGFloat heightDelta = InfoBarContainerDelegate::kDefaultBarTargetHeightMd -
+ InfoBarContainerDelegate::kDefaultBarTargetHeight;
+ for (NSView* nextSubview in [infoBarView_ subviews]) {
+ NSRect frame = [nextSubview frame];
+ frame.origin.y += heightDelta / 2;
+ [nextSubview setFrame:frame];
}
[infoBarView_ setInfobarType:[self delegate]->GetInfoBarType()];
« no previous file with comments | « chrome/browser/ui/cocoa/hover_close_button.mm ('k') | chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698