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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm

Issue 2360803002: Remove some pre-MD code from toolbar/tabstrip/frame. (Closed)
Patch Set: couple more Created 4 years, 3 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/views/frame/browser_non_client_frame_view_mac.mm
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm
index fa25be9e33aff0a7be0f0cdbc2bbd62f1c0fdb57..8d1fa74c9f839f8fa3cd17bc25abcc68071158ce 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm
@@ -143,8 +143,7 @@ void BrowserNonClientFrameViewMac::PaintToolbarBackground(gfx::Canvas* canvas) {
const ui::ThemeProvider* tp = GetThemeProvider();
gfx::ImageSkia* border = tp->GetImageSkiaNamed(IDR_TOOLBAR_SHADE_TOP);
- const int top_inset =
- GetLayoutConstant(TABSTRIP_TOOLBAR_OVERLAP) - border->height();
+ const int top_inset = -border->height();
Peter Kasting 2016/09/22 23:27:24 Nit: Just use "- border->height()" directly below
Evan Stade 2016/09/23 00:31:07 Done.
const int x = bounds.x();
const int y = bounds.y() + top_inset;

Powered by Google App Engine
This is Rietveld 408576698