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

Unified Diff: chrome/browser/ui/cocoa/menu_button.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/menu_button.mm
diff --git a/chrome/browser/ui/cocoa/menu_button.mm b/chrome/browser/ui/cocoa/menu_button.mm
index af4a1388d111ff524507b21119cd018e1d4f5166..15ffcab3c8d1a1285bcd3312731e5c78af7b15ad 100644
--- a/chrome/browser/ui/cocoa/menu_button.mm
+++ b/chrome/browser/ui/cocoa/menu_button.mm
@@ -160,12 +160,10 @@ - (void)showMenu:(BOOL)isDragging {
frame.origin.x -= 2.0;
frame.size.height -= 19.0 - NSHeight(frame);
- // The button's icon has a different relationship to its bounds in
- // Material Design, so have to adjust the menu location by that delta.
- if (ui::MaterialDesignController::IsModeMaterial()) {
- frame.origin.x -= [ToolbarController materialDesignButtonInset];
- frame.origin.y += [ToolbarController materialDesignButtonInset];
- }
+ // The button's icon has a different relationship to its bounds, so have to
+ // adjust the menu location by that delta.
+ frame.origin.x -= [ToolbarController materialDesignButtonInset];
+ frame.origin.y += [ToolbarController materialDesignButtonInset];
// Make our pop-up button cell and set things up. This is, as of 10.5, the
// official Apple-recommended hack. Later, perhaps |-[NSMenu
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm ('k') | chrome/browser/ui/cocoa/new_tab_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698