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

Issue 2899053002: Fix the MD Incognito NTP background color regression (Closed)

Created:
3 years, 7 months ago by msramek
Modified:
3 years, 7 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, pedrosimonetti+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the MD Incognito NTP background color regression The CL https://codereview.chromium.org/2891983003/ intended to fix the white flash while loading Incognito NTP by moving the color definition from CSS to ThemeProperties. Unfortunately, the approach had two problems: 1. The color in ThemeService can be overriden in the NTPResourceCache to SkColor(0x32, 0x32, 0x32). However, the new MD Incognito NTP uses SkColor(0x30, 0x30, 0x30) (which used to be defined in the CSS), which creates a visible seam between the background and the content area. 2. The color definition in ThemeProperties is not always reached. ThemeService can route the query to CustomThemeSupplier. For example, on Linux, the request may be answered by SystemThemeX11, which has no concept of Incognito, and thus always returns the default (white) background color. This means that the white flash issue is not solved. This CL only addresses the problem 1. BUG=693525 Review-Url: https://codereview.chromium.org/2899053002 Cr-Commit-Position: refs/heads/master@{#474343} Committed: https://chromium.googlesource.com/chromium/src/+/fe9fc5308c333d5dd084872675cff77ff87c894c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M chrome/browser/themes/theme_properties.cc View 1 3 chunks +11 lines, -2 lines 2 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (9 generated)
msramek
Hi Evan, Please have a look! This is a followup to https://codereview.chromium.org/2891983003/ which we both ...
3 years, 7 months ago (2017-05-23 17:50:17 UTC) #3
Evan Stade
https://codereview.chromium.org/2899053002/diff/1/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc File chrome/browser/ui/webui/ntp/ntp_resource_cache.cc (left): https://codereview.chromium.org/2899053002/diff/1/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc#oldcode502 chrome/browser/ui/webui/ntp/ntp_resource_cache.cc:502: : SkColorSetRGB(0x32, 0x32, 0x32); I'm confused. Can you just ...
3 years, 7 months ago (2017-05-24 00:23:43 UTC) #4
msramek
https://codereview.chromium.org/2899053002/diff/1/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc File chrome/browser/ui/webui/ntp/ntp_resource_cache.cc (left): https://codereview.chromium.org/2899053002/diff/1/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc#oldcode502 chrome/browser/ui/webui/ntp/ntp_resource_cache.cc:502: : SkColorSetRGB(0x32, 0x32, 0x32); On 2017/05/24 00:23:43, Evan Stade ...
3 years, 7 months ago (2017-05-24 01:05:21 UTC) #5
Evan Stade
thanks for the explanation. https://codereview.chromium.org/2899053002/diff/1/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc File chrome/browser/ui/webui/ntp/ntp_resource_cache.cc (left): https://codereview.chromium.org/2899053002/diff/1/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc#oldcode502 chrome/browser/ui/webui/ntp/ntp_resource_cache.cc:502: : SkColorSetRGB(0x32, 0x32, 0x32); On ...
3 years, 7 months ago (2017-05-24 02:00:25 UTC) #6
msramek
https://codereview.chromium.org/2899053002/diff/1/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc File chrome/browser/ui/webui/ntp/ntp_resource_cache.cc (left): https://codereview.chromium.org/2899053002/diff/1/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc#oldcode502 chrome/browser/ui/webui/ntp/ntp_resource_cache.cc:502: : SkColorSetRGB(0x32, 0x32, 0x32); On 2017/05/24 02:00:25, Evan Stade ...
3 years, 7 months ago (2017-05-24 09:32:18 UTC) #9
Evan Stade
thanks, lgtm https://codereview.chromium.org/2899053002/diff/20001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/2899053002/diff/20001/chrome/browser/themes/theme_properties.cc#newcode73 chrome/browser/themes/theme_properties.cc:73: // TODO(msramek): Remove the old entry when ...
3 years, 7 months ago (2017-05-24 17:30:26 UTC) #12
msramek
Thanks! https://codereview.chromium.org/2899053002/diff/20001/chrome/browser/themes/theme_properties.cc File chrome/browser/themes/theme_properties.cc (right): https://codereview.chromium.org/2899053002/diff/20001/chrome/browser/themes/theme_properties.cc#newcode73 chrome/browser/themes/theme_properties.cc:73: // TODO(msramek): Remove the old entry when the ...
3 years, 7 months ago (2017-05-24 17:39:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2899053002/20001
3 years, 7 months ago (2017-05-24 17:40:51 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 17:47:50 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/fe9fc5308c333d5dd084872675cf...

Powered by Google App Engine
This is Rietveld 408576698