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

Issue 2062353002: Replace CONTROL_BACKGROUND and DETACHED_BOOKMARK_BAR_BACKGROUND by COLOR_NTP_BACKGROUND (Closed)

Created:
4 years, 6 months ago by Julien Isorce Samsung
Modified:
4 years, 4 months ago
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org, dgozman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace CONTROL_BACKGROUND and DETACHED_BOOKMARK_BAR_BACKGROUND by COLOR_NTP_BACKGROUND This fixes issues where the ntp background image was interrupted underneath the detached bookmark bar. Also the ntp_background color is now forced to be opaque even if a none opaque alpha value is provided from the theme. This prevent issues with subpixel AA which does not work on none opaque background. (and to avoid falling back to grayscale AA) Also see crbug.com/618278 BUG=618335 R=estade@chromium.org, pkasting@chromium.org Committed: https://crrev.com/bb4e97590966ba4138b759b8a6450e526a24fa27 Cr-Commit-Position: refs/heads/master@{#405725}

Patch Set 1 #

Patch Set 2 : Fix build with clang #

Patch Set 3 : More clang build fix #

Total comments: 2

Patch Set 4 : Rebase and use SkColorSetA instead of direct bit manipulation #

Patch Set 5 : Rebase and force opaque for color_ntp_background from the theme machinery #

Total comments: 6

Patch Set 6 : Rebase and address few nits #

Patch Set 7 : Add brackets #

Total comments: 2

Patch Set 8 : Rebase and use SetRGB everywhere #

Patch Set 9 : Rebase #

Patch Set 10 : Propery handle incognito mode #

Total comments: 1

Patch Set 11 : Fix const #

Patch Set 12 : Bring back Patch Set 8 that landed before the revert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -41 lines) Patch
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/themes/theme_properties.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/themes/theme_properties.cc View 1 2 3 10 11 4 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/chrome_style.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/gtk2_ui.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 10 11 2 chunks +4 lines, -9 lines 0 comments Download

Messages

Total messages: 80 (41 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062353002/1
4 years, 6 months ago (2016-06-15 11:01:43 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/203581)
4 years, 6 months ago (2016-06-15 11:12:40 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062353002/20001
4 years, 6 months ago (2016-06-15 11:31:38 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/228724)
4 years, 6 months ago (2016-06-15 11:45:12 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062353002/40001
4 years, 6 months ago (2016-06-15 12:15:05 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-15 13:11:23 UTC) #12
Julien Isorce Samsung
On 2016/06/15 13:11:23, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 6 months ago (2016-06-15 13:35:10 UTC) #15
Peter Kasting
I've been delaying reviewing this because before proceeding this direction I need to better understand ...
4 years, 6 months ago (2016-06-20 21:10:22 UTC) #16
Peter Kasting
Since I'm going to be out for several days, you're welcome to help gather some ...
4 years, 6 months ago (2016-06-22 23:46:36 UTC) #17
Julien Isorce Samsung
On 2016/06/22 23:46:36, Peter Kasting (OOO) wrote: > Since I'm going to be out for ...
4 years, 5 months ago (2016-06-27 09:34:15 UTC) #18
Peter Kasting
I think the effect here is not worse than today, so I'm OK with the ...
4 years, 5 months ago (2016-07-01 01:10:02 UTC) #19
Julien Isorce Samsung
https://codereview.chromium.org/2062353002/diff/40001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2062353002/diff/40001/chrome/browser/ui/views/frame/browser_view.cc#newcode229 chrome/browser/ui/views/frame/browser_view.cc:229: tp->GetColor(ThemeProperties::COLOR_NTP_BACKGROUND) | 0xFF000000); On 2016/07/01 01:10:02, Peter Kasting wrote: ...
4 years, 5 months ago (2016-07-01 13:27:45 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2062353002/60001
4 years, 5 months ago (2016-07-01 13:28:00 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-01 14:11:58 UTC) #24
Peter Kasting
Based on the screenshots in the bug, we should force this to opaque in the ...
4 years, 5 months ago (2016-07-01 20:18:21 UTC) #25
Julien Isorce Samsung
On 2016/07/01 20:18:21, Peter Kasting wrote: > Based on the screenshots in the bug, we ...
4 years, 5 months ago (2016-07-04 16:47:37 UTC) #26
Peter Kasting
On 2016/07/04 16:47:37, Julien Isorce wrote: > On 2016/07/01 20:18:21, Peter Kasting wrote: > > ...
4 years, 5 months ago (2016-07-06 20:42:48 UTC) #27
Julien Isorce Samsung
On 2016/07/06 20:42:48, Peter Kasting wrote: > On 2016/07/04 16:47:37, Julien Isorce wrote: > > ...
4 years, 5 months ago (2016-07-07 00:17:43 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2062353002/80001
4 years, 5 months ago (2016-07-07 09:52:37 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 10:28:15 UTC) #33
Julien Isorce Samsung
On 2016/07/07 10:28:15, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 5 months ago (2016-07-08 09:55:11 UTC) #34
Peter Kasting
LGTM https://codereview.chromium.org/2062353002/diff/80001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): https://codereview.chromium.org/2062353002/diff/80001/chrome/browser/themes/browser_theme_pack.cc#newcode797 chrome/browser/themes/browser_theme_pack.cc:797: case ThemeProperties::COLOR_NTP_BACKGROUND: Nit: This is fine, but I ...
4 years, 5 months ago (2016-07-11 01:41:58 UTC) #35
Julien Isorce Samsung
Thx for the review, all done in Patch Set 6. https://codereview.chromium.org/2062353002/diff/80001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): https://codereview.chromium.org/2062353002/diff/80001/chrome/browser/themes/browser_theme_pack.cc#newcode797 ...
4 years, 5 months ago (2016-07-13 15:01:33 UTC) #36
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/2062353002/120001
4 years, 5 months ago (2016-07-14 05:30:31 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/217962)
4 years, 5 months ago (2016-07-14 05:38:42 UTC) #45
Julien Isorce Samsung
** Presubmit ERRORS ** Missing LGTM from an OWNER for these files: chrome/browser/themes/browser_theme_pack.cc chrome/browser/themes/browser_theme_pack_unittest.cc chrome/browser/themes/theme_properties.cc ...
4 years, 5 months ago (2016-07-14 08:47:11 UTC) #47
Evan Stade
c/b/themes lgtm https://codereview.chromium.org/2062353002/diff/120001/chrome/browser/themes/browser_theme_pack_unittest.cc File chrome/browser/themes/browser_theme_pack_unittest.cc (right): https://codereview.chromium.org/2062353002/diff/120001/chrome/browser/themes/browser_theme_pack_unittest.cc#newcode454 chrome/browser/themes/browser_theme_pack_unittest.cc:454: colors[ThemeProperties::COLOR_TOOLBAR] = SkColorSetARGB(255, 0, 20, 40); Just ...
4 years, 5 months ago (2016-07-14 20:41:51 UTC) #48
Julien Isorce Samsung
Thx for the review. https://codereview.chromium.org/2062353002/diff/120001/chrome/browser/themes/browser_theme_pack_unittest.cc File chrome/browser/themes/browser_theme_pack_unittest.cc (right): https://codereview.chromium.org/2062353002/diff/120001/chrome/browser/themes/browser_theme_pack_unittest.cc#newcode454 chrome/browser/themes/browser_theme_pack_unittest.cc:454: colors[ThemeProperties::COLOR_TOOLBAR] = SkColorSetARGB(255, 0, 20, ...
4 years, 5 months ago (2016-07-15 06:44:11 UTC) #52
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/2062353002/140001
4 years, 5 months ago (2016-07-15 08:30:38 UTC) #59
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-15 08:35:01 UTC) #61
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 08:35:05 UTC) #62
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/bb4e97590966ba4138b759b8a6450e526a24fa27 Cr-Commit-Position: refs/heads/master@{#405725}
4 years, 5 months ago (2016-07-15 08:36:56 UTC) #64
Evan Stade
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2159833002/ by estade@chromium.org. ...
4 years, 5 months ago (2016-07-18 16:55:16 UTC) #65
Julien Isorce Samsung
On 2016/07/18 16:55:16, Evan Stade wrote: > The reason for reverting is: caused regression: crbug.com/628970. ...
4 years, 4 months ago (2016-08-14 23:54:15 UTC) #69
Julien Isorce Samsung
https://codereview.chromium.org/2062353002/diff/180001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2062353002/diff/180001/chrome/browser/ui/views/frame/browser_view.cc#newcode230 chrome/browser/ui/views/frame/browser_view.cc:230: : ThemeProperties::COLOR_NTP_BACKGROUND)); To avoid regression of https://bugs.chromium.org/p/chromium/issues/detail?id=628970. Or we ...
4 years, 4 months ago (2016-08-15 00:03:49 UTC) #72
Peter Kasting
On 2016/08/14 23:54:15, Julien Isorce wrote: > On 2016/07/18 16:55:16, Evan Stade wrote: > > ...
4 years, 4 months ago (2016-08-15 22:10:44 UTC) #77
Julien Isorce Samsung
On 2016/08/15 22:10:44, Peter Kasting wrote: > On 2016/08/14 23:54:15, Julien Isorce wrote: > > ...
4 years, 4 months ago (2016-08-15 23:41:21 UTC) #78
Julien Isorce Samsung
On 2016/08/15 23:41:21, Julien Isorce wrote: > On 2016/08/15 22:10:44, Peter Kasting wrote: > > ...
4 years, 4 months ago (2016-08-16 15:50:44 UTC) #79
Julien Isorce Samsung
4 years, 4 months ago (2016-08-16 15:58:20 UTC) #80
Message was sent while issue was closed.
On 2016/08/16 15:50:44, Julien Isorce wrote:
> On 2016/08/15 23:41:21, Julien Isorce wrote:
> > On 2016/08/15 22:10:44, Peter Kasting wrote:
> > > On 2016/08/14 23:54:15, Julien Isorce wrote:
> > > > On 2016/07/18 16:55:16, Evan Stade wrote:
> > > > > The reason for reverting is: caused regression: crbug.com/628970.
> > > > To fix this regression I did this:
> > > >
> > >
> >
>
https://codereview.chromium.org/2062353002/diff2/160001:180001/chrome/browser...
> > > > 
> > > > In Patch Set 10, I implemented 1 and 2 from
> > > > https://bugs.chromium.org/p/chromium/issues/detail?id=618335#c12 .
> > > > Please have a look. Thx.
> > > 
> > > Please don't post new patches on CLs that have already been landed, even
if
> > > reverted.  It makes it very confusing later to tell what actually landed
> here
> > > when clicking the link from the original commit.
> > > 
> > > Instead:
> > > (1) Delete the patch set here that was posted after landing
> > > (2) Upload a new CL, with the first patch being the thing that landed here
> > > (ideally, synced to current trunk), and then a second change set with what
> you
> > > want to land now.  This makes it easy to do a diff of patch set 1 against
2
> to
> > > see just the new changes.
> > 
> > Ah ok sorry I did not know. (Just to double check, it is not a new CL here,
> > really just a new Patch Set)
> > Also note that I uploaded a rebase here before the additional changes.
> > These additional changes are the delta between patch 9 and 10.
> > But no problem, tomorrow I will do what you suggested above.
> 
> Done here https://codereview.chromium.org/2252703002

Oups mistake, done here https://codereview.chromium.org/2248103002

Powered by Google App Engine
This is Rietveld 408576698