Index: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc |
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc |
index e67d28ea4152f4aa4785c2b8c15b344cbd83a248..1f0066862d7243572f52ab31d1cf53eb515239f8 100644 |
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc |
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc |
@@ -140,7 +140,7 @@ std::string GetNewTabBackgroundCSS(const ui::ThemeProvider& theme_provider, |
if (alignment & ThemeProperties::ALIGN_TOP) { |
// The bar is detached, so we must offset the background by the bar size |
// if it's a top-aligned bar. |
Evan Stade
2016/08/17 06:36:35
ruh roh. This is now broken since we aren't hard-c
kylix_rd
2016/08/17 15:39:02
It is only broken if kNTPMinimumBookmarkBarHeight
Evan Stade
2016/08/17 15:47:29
oh wait, that's right, the ntp version is taller a
kylix_rd
2016/08/17 16:13:51
Consistency? A little overzealous? Good question.
|
- int offset = chrome::kNTPBookmarkBarHeight; |
+ int offset = chrome::kNTPMinimumBookmarkBarHeight; |
if (alignment & ThemeProperties::ALIGN_LEFT) |
return "left " + base::IntToString(-offset) + "px"; |