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

Issue 1420163003: Fixed Windows system tray icon. (Closed)

Created:
5 years, 1 month ago by Matt Giuca
Modified:
5 years ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@profile-icon-imagefamily
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed Windows system tray icon. Previously was using a 22x22 image, then Windows was scaling it to the desired size (usually 16x16, but not necessarily). Now, selects the appropriate icon from the Chrome ICO file and scales it using a high-quality scaling algorithm to the desired size. This should also mean that on Chrome Canary, the system tray icon is the golden Canary logo. NOTE: This new algorithm may add several milliseconds to startup time. If this causes perf issues, revert and we can work out a way to do this without blocking the startup path. BUG=124141, 351874 Committed: https://crrev.com/8367e724a57ac3300262d39b4ec15f2d410cc80d Cr-Commit-Position: refs/heads/master@{#361597}

Patch Set 1 #

Patch Set 2 : Post a delayed task to avoid increasing startup time. #

Patch Set 3 : Rebase (had to inline GetAppIconForSize because it got deleted upstream). #

Patch Set 4 : Remove IDR_STATUS_TRAY_ICON on Win, and update tests to account for this. #

Total comments: 20

Patch Set 5 : Address msw comments. #

Patch Set 6 : Rebase. #

Patch Set 7 : Avoid posting after-startup task in test. #

Patch Set 8 : Fix crash (avoid async call from DisplayClientInstalledNotification). #

Total comments: 2

Patch Set 9 : Revert changes to start in a delayed task. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -49 lines) Patch
M chrome/app/theme/chrome_unscaled_resources.grd View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/background/background_mode_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +32 lines, -5 lines 0 comments Download
M chrome/browser/status_icons/status_icon_menu_model_unittest.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/status_icons/status_tray_unittest.cc View 1 2 3 4 2 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_win_unittest.cc View 1 2 3 4 7 chunks +16 lines, -26 lines 0 comments Download

Messages

Total messages: 37 (12 generated)
Matt Giuca
atwilson: All please. oshima: chrome_unscaled_resources.grd msw: status_tray_win_unittest.cc (aside: shouldn't atwilson have OWNERS in chrome/browser/ui/views/status_icons?) I ...
5 years, 1 month ago (2015-11-11 05:53:03 UTC) #2
msw
https://codereview.chromium.org/1420163003/diff/60001/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): https://codereview.chromium.org/1420163003/diff/60001/chrome/browser/background/background_mode_manager.cc#newcode921 chrome/browser/background/background_mode_manager.cc:921: if (!family) Maybe invert the check to conditionally return ...
5 years, 1 month ago (2015-11-12 00:43:30 UTC) #3
Matt Giuca
https://codereview.chromium.org/1420163003/diff/60001/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): https://codereview.chromium.org/1420163003/diff/60001/chrome/browser/background/background_mode_manager.cc#newcode921 chrome/browser/background/background_mode_manager.cc:921: if (!family) On 2015/11/12 00:43:29, msw wrote: > Maybe ...
5 years, 1 month ago (2015-11-12 04:44:39 UTC) #4
msw
lgtm with a nit and a q. https://codereview.chromium.org/1420163003/diff/60001/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): https://codereview.chromium.org/1420163003/diff/60001/chrome/browser/background/background_mode_manager.cc#newcode921 chrome/browser/background/background_mode_manager.cc:921: if (!family) ...
5 years, 1 month ago (2015-11-12 18:27:23 UTC) #5
oshima
c/a/theme lgtm
5 years, 1 month ago (2015-11-12 21:52:21 UTC) #6
Matt Giuca
https://codereview.chromium.org/1420163003/diff/60001/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): https://codereview.chromium.org/1420163003/diff/60001/chrome/browser/background/background_mode_manager.cc#newcode921 chrome/browser/background/background_mode_manager.cc:921: if (!family) On 2015/11/12 18:27:23, msw wrote: > Fair ...
5 years, 1 month ago (2015-11-13 07:21:49 UTC) #7
Andrew T Wilson (Slow)
lgtm
5 years, 1 month ago (2015-11-13 07:48:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420163003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420163003/80001
5 years, 1 month ago (2015-11-18 02:12:53 UTC) #10
commit-bot: I haz the power
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/130540) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-18 02:42:38 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420163003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420163003/120001
5 years, 1 month ago (2015-11-19 06:26:48 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/132960)
5 years, 1 month ago (2015-11-19 08:14:06 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420163003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420163003/140001
5 years, 1 month ago (2015-11-23 04:02:15 UTC) #19
Matt Giuca
atwilson: Could you take another look at PS7? The issue that came up is that ...
5 years, 1 month ago (2015-11-23 04:05:09 UTC) #20
Matt Giuca
On 2015/11/23 04:05:09, Matt Giuca wrote: > atwilson: Could you take another look at PS7? ...
5 years, 1 month ago (2015-11-23 04:05:29 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-23 04:41:31 UTC) #23
Andrew T Wilson (Slow)
See my suggestion in the comments (have CreateStatusTrayIcon always create a static icon synchronously, but ...
5 years, 1 month ago (2015-11-23 11:28:11 UTC) #24
Matt Giuca
On 2015/11/23 11:28:11, Andrew T Wilson (Slow) wrote: > See my suggestion in the comments ...
5 years ago (2015-11-24 07:07:46 UTC) #25
Andrew T Wilson (Slow)
On 2015/11/24 07:07:46, Matt Giuca wrote: > On 2015/11/23 11:28:11, Andrew T Wilson (Slow) wrote: ...
5 years ago (2015-11-24 15:55:35 UTC) #26
Matt Giuca
On 2015/11/24 15:55:35, Andrew T Wilson (Slow) wrote: > On 2015/11/24 07:07:46, Matt Giuca wrote: ...
5 years ago (2015-11-25 00:22:06 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420163003/160001
5 years ago (2015-11-25 02:47:41 UTC) #29
Matt Giuca
Removed the delayed task code and updated CL description. Now this is *just* fixing the ...
5 years ago (2015-11-25 02:47:43 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/101135)
5 years ago (2015-11-25 04:17:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420163003/160001
5 years ago (2015-11-25 06:11:02 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-11-25 06:53:55 UTC) #36
commit-bot: I haz the power
5 years ago (2015-11-25 06:54:56 UTC) #37
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8367e724a57ac3300262d39b4ec15f2d410cc80d
Cr-Commit-Position: refs/heads/master@{#361597}

Powered by Google App Engine
This is Rietveld 408576698