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

Issue 1219533009: Make SysColorChangeListener Windows-only instead of having an empty shell. (Closed)

Created:
5 years, 5 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@net_private_fields
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SysColorChangeListener Windows-only instead of having an empty shell. The class in only used on Windows and we end up building an empty class on other platforms. It leads to "unused private fields" warnings that could be avoided. BUG=447445 Committed: https://crrev.com/20bb4c4aa6b26509c3040c562c5b051bd575e7eb Cr-Commit-Position: refs/heads/master@{#337815}

Patch Set 1 #

Total comments: 1

Patch Set 2 : review comments and build fix #

Patch Set 3 : use color_utils #

Total comments: 1

Patch Set 4 : fiiiix #

Patch Set 5 : #

Patch Set 6 : gfx -> color_utils #

Patch Set 7 : forgot one #

Total comments: 10

Patch Set 8 : review comments #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -40 lines) Patch
M chrome/browser/search/instant_service.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/accessibility/invert_bubble_view.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/color_utils.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gfx/color_utils.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/sys_color_change_listener.h View 1 2 1 chunk +1 line, -8 lines 0 comments Download
M ui/gfx/sys_color_change_listener.cc View 1 2 3 4 5 6 7 5 chunks +6 lines, -15 lines 0 comments Download
M ui/native_theme/common_theme.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M ui/native_theme/native_theme_win.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/blue_button.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 18 (4 generated)
mlamouri (slow - plz ping)
5 years, 5 months ago (2015-07-03 15:21:10 UTC) #2
sadrul
https://codereview.chromium.org/1219533009/diff/1/ui/gfx/sys_color_change_listener.cc File ui/gfx/sys_color_change_listener.cc (right): https://codereview.chromium.org/1219533009/diff/1/ui/gfx/sys_color_change_listener.cc#newcode97 ui/gfx/sys_color_change_listener.cc:97: #endif Don't you need to remove this too?
5 years, 5 months ago (2015-07-04 06:22:22 UTC) #3
mlamouri (slow - plz ping)
Done. I've also added a ifdef around a IsInvertedColorScheme(). It's not ideal. Another solution would ...
5 years, 5 months ago (2015-07-06 08:57:33 UTC) #4
sadrul
On 2015/07/06 08:57:33, Mounir Lamouri wrote: > Done. I've also added a ifdef around a ...
5 years, 5 months ago (2015-07-06 18:26:32 UTC) #5
mlamouri (slow - plz ping)
I moved IsInvertedColorScheme() to color_utils. PTAL.
5 years, 5 months ago (2015-07-06 19:01:29 UTC) #6
sadrul
On 2015/07/06 19:01:29, Mounir Lamouri wrote: > I moved IsInvertedColorScheme() to color_utils. PTAL. I think ...
5 years, 5 months ago (2015-07-06 19:05:10 UTC) #7
mlamouri (slow - plz ping)
On 2015/07/06 at 19:05:10, sadrul wrote: > On 2015/07/06 19:01:29, Mounir Lamouri wrote: > > ...
5 years, 5 months ago (2015-07-06 19:19:45 UTC) #8
mlamouri (slow - plz ping)
PTAL.
5 years, 5 months ago (2015-07-06 19:24:34 UTC) #9
sadrul
Mostly nits. lgtm with these addressed. Note: the try failure in win8_chromium_ng looks related. https://codereview.chromium.org/1219533009/diff/120001/ui/gfx/color_utils.cc ...
5 years, 5 months ago (2015-07-07 04:36:54 UTC) #10
mlamouri (slow - plz ping)
jochen@, can you review the chrome/ bits? Thanks :) https://codereview.chromium.org/1219533009/diff/120001/ui/gfx/color_utils.cc File ui/gfx/color_utils.cc (right): https://codereview.chromium.org/1219533009/diff/120001/ui/gfx/color_utils.cc#newcode322 ui/gfx/color_utils.cc:322: ...
5 years, 5 months ago (2015-07-07 13:45:15 UTC) #12
jochen (gone - plz use gerrit)
lgtm
5 years, 5 months ago (2015-07-08 13:07:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1219533009/160001
5 years, 5 months ago (2015-07-08 13:27:28 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 5 months ago (2015-07-08 14:30:29 UTC) #17
commit-bot: I haz the power
5 years, 5 months ago (2015-07-08 14:31:33 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/20bb4c4aa6b26509c3040c562c5b051bd575e7eb
Cr-Commit-Position: refs/heads/master@{#337815}

Powered by Google App Engine
This is Rietveld 408576698