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

Issue 2609853003: Load extension icons for more scale factors. (Closed)

Created:
3 years, 11 months ago by Evan Stade
Modified:
3 years, 11 months ago
Reviewers:
oshima, Devlin, Daniel Erat
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Load extension icons for more scale factors. The "supported" scale factors are just the ones that we load raster assets for (in ResourceBundle). This patch additionally looks for icons in scale factors that correlate with the currently attached displays. Practically speaking, this means a machine that's running at 1.5x such as a Surface Pro will have better looking extension icons in the renderer context menu. BUG=596757 Review-Url: https://codereview.chromium.org/2609853003 Cr-Commit-Position: refs/heads/master@{#444128} Committed: https://chromium.googlesource.com/chromium/src/+/47ce132c79896db4fe4832a96b097adc643e6e99

Patch Set 1 #

Total comments: 2

Patch Set 2 : test #

Patch Set 3 : more floats #

Total comments: 3

Patch Set 4 : more enum->float #

Patch Set 5 : fix mac #

Total comments: 3

Patch Set 6 : fix mac? #

Patch Set 7 : fix mac? #

Patch Set 8 : . #

Patch Set 9 : this is so annoying #

Total comments: 2

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -46 lines) Patch
M chrome/browser/extensions/extension_icon_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +46 lines, -1 line 0 comments Download
M extensions/browser/extension_icon_image.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/browser/extension_icon_image.cc View 1 2 4 chunks +5 lines, -11 lines 0 comments Download
M extensions/browser/image_loader.h View 1 3 chunks +6 lines, -4 lines 0 comments Download
M extensions/browser/image_loader.cc View 6 chunks +22 lines, -15 lines 0 comments Download
M extensions/browser/image_loader_unittest.cc View 1 2 3 3 chunks +6 lines, -11 lines 0 comments Download
M ui/display/test/test_screen.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 54 (40 generated)
Evan Stade
3 years, 11 months ago (2017-01-03 23:09:31 UTC) #2
Devlin
On 2017/01/03 23:09:31, Evan Stade wrote: This looks okay, but can we add a unittest? ...
3 years, 11 months ago (2017-01-04 15:58:13 UTC) #3
Devlin
https://codereview.chromium.org/2609853003/diff/1/extensions/browser/image_loader.h File extensions/browser/image_loader.h (right): https://codereview.chromium.org/2609853003/diff/1/extensions/browser/image_loader.h#newcode90 extensions/browser/image_loader.h:90: // Loads and returns a gfx::Image that has representations ...
3 years, 11 months ago (2017-01-04 15:59:10 UTC) #4
Evan Stade
test added. Screenshots aren't very informative beyond what's already posted on the bug. (Despite my ...
3 years, 11 months ago (2017-01-06 21:57:42 UTC) #5
Devlin
Looks like the latest patchset is breaking a bunch of bots; mind updating and re-pinging?
3 years, 11 months ago (2017-01-06 23:22:19 UTC) #10
Evan Stade
https://codereview.chromium.org/2609853003/diff/40001/extensions/browser/extension_icon_image.cc File extensions/browser/extension_icon_image.cc (left): https://codereview.chromium.org/2609853003/diff/40001/extensions/browser/extension_icon_image.cc#oldcode204 extensions/browser/extension_icon_image.cc:204: scale_factor)); the failure was due to scale_factor being an ...
3 years, 11 months ago (2017-01-07 01:17:38 UTC) #11
Devlin
lgtm % nits https://codereview.chromium.org/2609853003/diff/40001/chrome/browser/extensions/extension_icon_manager_unittest.cc File chrome/browser/extensions/extension_icon_manager_unittest.cc (right): https://codereview.chromium.org/2609853003/diff/40001/chrome/browser/extensions/extension_icon_manager_unittest.cc#newcode279 chrome/browser/extensions/extension_icon_manager_unittest.cc:279: // Now check that the DSFs ...
3 years, 11 months ago (2017-01-09 21:58:33 UTC) #21
Evan Stade
finally got it all green, ptal
3 years, 11 months ago (2017-01-13 05:51:24 UTC) #40
Devlin
s lgtm https://codereview.chromium.org/2609853003/diff/80001/chrome/browser/extensions/extension_icon_manager_unittest.cc File chrome/browser/extensions/extension_icon_manager_unittest.cc (right): https://codereview.chromium.org/2609853003/diff/80001/chrome/browser/extensions/extension_icon_manager_unittest.cc#newcode274 chrome/browser/extensions/extension_icon_manager_unittest.cc:274: else if (ui::IsSupportedScale(scale)) On 2017/01/09 21:58:33, Devlin ...
3 years, 11 months ago (2017-01-13 15:53:48 UTC) #41
Evan Stade
+derat for one line change in ui/display https://codereview.chromium.org/2609853003/diff/80001/chrome/browser/extensions/extension_icon_manager_unittest.cc File chrome/browser/extensions/extension_icon_manager_unittest.cc (right): https://codereview.chromium.org/2609853003/diff/80001/chrome/browser/extensions/extension_icon_manager_unittest.cc#newcode274 chrome/browser/extensions/extension_icon_manager_unittest.cc:274: else if ...
3 years, 11 months ago (2017-01-17 19:07:11 UTC) #43
Daniel Erat
lgtm for ui/display
3 years, 11 months ago (2017-01-17 19:20:05 UTC) #46
Evan Stade
https://codereview.chromium.org/2609853003/diff/160001/chrome/browser/extensions/extension_icon_manager_unittest.cc File chrome/browser/extensions/extension_icon_manager_unittest.cc (right): https://codereview.chromium.org/2609853003/diff/160001/chrome/browser/extensions/extension_icon_manager_unittest.cc#newcode56 chrome/browser/extensions/extension_icon_manager_unittest.cc:56: base::test::ScopedCommandLine cl_; On 2017/01/13 15:53:48, Devlin (possibly slow) wrote: ...
3 years, 11 months ago (2017-01-17 20:01:01 UTC) #47
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/2609853003/180001
3 years, 11 months ago (2017-01-17 20:01:37 UTC) #51
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 20:38:22 UTC) #54
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/47ce132c79896db4fe4832a96b09...

Powered by Google App Engine
This is Rietveld 408576698