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

Issue 10861034: Supply default icon to extension icon image. (Closed)

Created:
8 years, 4 months ago by tbarzic
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Supply default icon to extension icon image. Icon image shuld return default representation until actual image is loaded instead of the empty representation. Also, handle the case when image loading tracker returns synchronously. BUG=138025 TEST=IconImageTests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155330

Patch Set 1 #

Patch Set 2 : .. #

Patch Set 3 : nits #

Patch Set 4 : tests #

Patch Set 5 : .. #

Patch Set 6 : . #

Total comments: 11

Patch Set 7 : some fixes #

Patch Set 8 : unneeded includes #

Patch Set 9 : test #

Total comments: 2

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 12

Patch Set 12 : nits #

Total comments: 23

Patch Set 13 : . #

Total comments: 46

Patch Set 14 : .. #

Total comments: 6

Patch Set 15 : .. #

Patch Set 16 : .. #

Patch Set 17 : .. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -133 lines) Patch
M chrome/browser/extensions/extension_icon_image.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +29 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_icon_image.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +105 lines, -30 lines 0 comments Download
M chrome/browser/extensions/extension_icon_image_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +362 lines, -93 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
tbarzic
8 years, 4 months ago (2012-08-21 21:43:50 UTC) #1
tbarzic
8 years, 4 months ago (2012-08-21 22:04:04 UTC) #2
xiyuan
I wonder do we still need to load failure notification if we have a default ...
8 years, 4 months ago (2012-08-21 22:30:36 UTC) #3
tbarzic
On 2012/08/21 22:30:36, xiyuan wrote: > I wonder do we still need to load failure ...
8 years, 4 months ago (2012-08-21 22:39:41 UTC) #4
pkotwicz
I'll take a look at the CL tomorrow
8 years, 4 months ago (2012-08-21 23:10:58 UTC) #5
tbarzic
https://chromiumcodereview.appspot.com/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): https://chromiumcodereview.appspot.com/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc#newcode85 chrome/browser/extensions/extension_icon_image.cc:85: return gfx::ImageSkiaRep(representation.sk_bitmap(), scale_factor); pkotwicz: is it safe to assume ...
8 years, 4 months ago (2012-08-22 02:39:10 UTC) #6
Aaron Boodman
I am concerned this will create weird flicker since for a moment the icon won't ...
8 years, 4 months ago (2012-08-22 21:26:05 UTC) #7
pkotwicz
http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc#newcode85 chrome/browser/extensions/extension_icon_image.cc:85: return gfx::ImageSkiaRep(representation.sk_bitmap(), scale_factor); If the default icon comes from ...
8 years, 4 months ago (2012-08-22 23:17:55 UTC) #8
tbarzic
http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.h File chrome/browser/extensions/extension_icon_image.h (right): http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.h#newcode38 chrome/browser/extensions/extension_icon_image.h:38: // make sure null ImageSkiaReps are handled well. On ...
8 years, 4 months ago (2012-08-22 23:46:08 UTC) #9
tbarzic
http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc#newcode162 chrome/browser/extensions/extension_icon_image.cc:162: // representation. On 2012/08/22 23:17:55, pkotwicz wrote: > Nit: ...
8 years, 4 months ago (2012-08-23 00:06:09 UTC) #10
pkotwicz
http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc#newcode162 chrome/browser/extensions/extension_icon_image.cc:162: // representation. I should have been clearer. My nit ...
8 years, 4 months ago (2012-08-23 13:59:08 UTC) #11
pkotwicz
http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc#newcode162 chrome/browser/extensions/extension_icon_image.cc:162: // representation. Ok, I see what you are doing. ...
8 years, 4 months ago (2012-08-23 14:09:45 UTC) #12
xiyuan
http://codereview.chromium.org/10861034/diff/3007/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/3007/chrome/browser/extensions/extension_icon_image.cc#newcode220 chrome/browser/extensions/extension_icon_image.cc:220: // the observers perspective, since we still haven't returned ...
8 years, 4 months ago (2012-08-23 17:25:57 UTC) #13
tbarzic
http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/12004/chrome/browser/extensions/extension_icon_image.cc#newcode162 chrome/browser/extensions/extension_icon_image.cc:162: // representation. On 2012/08/23 14:09:45, pkotwicz wrote: > Ok, ...
8 years, 4 months ago (2012-08-23 17:41:53 UTC) #14
xiyuan
pkotwicz and aa, any updates?
8 years, 3 months ago (2012-08-28 16:50:37 UTC) #15
pkotwicz
Comment nits only! LGTM
8 years, 3 months ago (2012-08-28 18:56:39 UTC) #16
pkotwicz
http://codereview.chromium.org/10861034/diff/20003/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/20003/chrome/browser/extensions/extension_icon_image.cc#newcode126 chrome/browser/extensions/extension_icon_image.cc:126: source_ = new Source(this, resource_size_in_dip); Nit 1: I find ...
8 years, 3 months ago (2012-08-28 18:56:56 UTC) #17
tbarzic
http://codereview.chromium.org/10861034/diff/20003/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/20003/chrome/browser/extensions/extension_icon_image.cc#newcode126 chrome/browser/extensions/extension_icon_image.cc:126: source_ = new Source(this, resource_size_in_dip); On 2012/08/28 18:56:57, pkotwicz ...
8 years, 3 months ago (2012-08-29 18:41:28 UTC) #18
Aaron Boodman
I'm trying to make my way through this, but something seems seriously broken that this ...
8 years, 3 months ago (2012-08-30 21:32:05 UTC) #19
Aaron Boodman
I give up -> redirect("jyasskin")
8 years, 3 months ago (2012-08-30 21:59:55 UTC) #20
tbarzic
On 2012/08/30 21:32:05, Aaron Boodman wrote: > I'm trying to make my way through this, ...
8 years, 3 months ago (2012-08-30 22:14:09 UTC) #21
Jeffrey Yasskin
I haven't looked through the test in detail yet. http://codereview.chromium.org/10861034/diff/32001/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): http://codereview.chromium.org/10861034/diff/32001/chrome/browser/extensions/extension_icon_image.cc#newcode45 chrome/browser/extensions/extension_icon_image.cc:45: ...
8 years, 3 months ago (2012-08-31 18:43:14 UTC) #22
tbarzic
https://chromiumcodereview.appspot.com/10861034/diff/32001/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): https://chromiumcodereview.appspot.com/10861034/diff/32001/chrome/browser/extensions/extension_icon_image.cc#newcode45 chrome/browser/extensions/extension_icon_image.cc:45: bitmap.setConfig(SkBitmap::kARGB_8888_Config, On 2012/08/31 18:43:14, Jeffrey Yasskin wrote: > Lots ...
8 years, 3 months ago (2012-08-31 22:29:44 UTC) #23
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/10861034/diff/32001/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): https://chromiumcodereview.appspot.com/10861034/diff/32001/chrome/browser/extensions/extension_icon_image.cc#newcode88 chrome/browser/extensions/extension_icon_image.cc:88: blank_image_(new BlankImageSource(size_in_dip), size_in_dip) { On 2012/08/31 22:29:44, tbarzic wrote: ...
8 years, 3 months ago (2012-09-01 01:10:27 UTC) #24
tbarzic
https://chromiumcodereview.appspot.com/10861034/diff/38001/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): https://chromiumcodereview.appspot.com/10861034/diff/38001/chrome/browser/extensions/extension_icon_image.cc#newcode19 chrome/browser/extensions/extension_icon_image.cc:19: * The file contains extensions::IconImage implementation, which provides On ...
8 years, 3 months ago (2012-09-04 21:07:09 UTC) #25
Jeffrey Yasskin
Only small things left. LGTM when they're done. I've been thinking about these icon issues ...
8 years, 3 months ago (2012-09-05 23:14:49 UTC) #26
tbarzic
https://chromiumcodereview.appspot.com/10861034/diff/42001/chrome/browser/extensions/extension_icon_image.cc File chrome/browser/extensions/extension_icon_image.cc (right): https://chromiumcodereview.appspot.com/10861034/diff/42001/chrome/browser/extensions/extension_icon_image.cc#newcode230 chrome/browser/extensions/extension_icon_image.cc:230: DCHECK_EQ(scale_factor, rep.scale_factor()); On 2012/09/05 23:14:49, Jeffrey Yasskin wrote: > ...
8 years, 3 months ago (2012-09-06 00:39:53 UTC) #27
Aaron Boodman
LGTM
8 years, 3 months ago (2012-09-06 18:37:54 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/10861034/38004
8 years, 3 months ago (2012-09-06 23:45:23 UTC) #29
commit-bot: I haz the power
8 years, 3 months ago (2012-09-07 05:42:23 UTC) #30
Change committed as 155330

Powered by Google App Engine
This is Rietveld 408576698