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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 2899053002: Fix the MD Incognito NTP background color regression (Closed)
Patch Set: Addressed comments. Created 3 years, 7 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/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 761fd55ac6faeb03a2e5623d347aa5b5377f0d42..444478cf76f92d74d8b7bd81a5432e207c4fd84c 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -499,7 +499,8 @@ void NTPResourceCache::CreateNewTabIncognitoCSS() {
SkColor color_background =
tp.HasCustomImage(IDR_THEME_NTP_BACKGROUND)
? GetThemeColor(tp, ThemeProperties::COLOR_NTP_BACKGROUND)
- : SkColorSetRGB(0x32, 0x32, 0x32);
+ : ThemeProperties::GetDefaultColor(
+ ThemeProperties::COLOR_NTP_BACKGROUND, true /* incognito */);
// Generate the replacements.
ui::TemplateReplacements substitutions;
« chrome/browser/themes/theme_properties.cc ('K') | « chrome/browser/themes/theme_properties.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698