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

Issue 22418003: CHR-458: Remove DCHECK which prevents from using custom ResourceBundle::Delegate (Closed)

Created:
7 years, 4 months ago by Przemek Kudla
Modified:
7 years, 4 months ago
Reviewers:
sail, Marshall, benrg, tony, oshima
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

CHR-458: Remove DCHECK which prevents from using custom ResourceBundle::Delegate I need to create a Delegate for ResourceBundle. The only purpose of it is to provide our own fonts. Other resources should be handled by ResourceBundle. A method GetImageNamed() should also be handled by ResourceBundle. It works fine in release builds, but triggers an assert in debug builds. DCHECK is triggered if a delegate does not create an image. This is wrong since the code can handle such case. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217726

Patch Set 1 #

Patch Set 2 : A fixup based on review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ui/base/resource/resource_bundle.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Przemek Kudla
@reviewer: does this patch look OK to you?
7 years, 4 months ago (2013-08-06 14:02:08 UTC) #1
tony
This doesn't look correct. Why is code trying to load an image that doesn't exist? ...
7 years, 4 months ago (2013-08-06 17:11:26 UTC) #2
oshima
Can't you simply define another ResourceHandler for fonts?
7 years, 4 months ago (2013-08-06 20:32:00 UTC) #3
Przemek Kudla
On 2013/08/06 20:32:00, oshima wrote: > Can't you simply define another ResourceHandler for fonts? Defining ...
7 years, 4 months ago (2013-08-07 09:09:06 UTC) #4
Przemek Kudla
On 2013/08/06 17:11:26, tony wrote: > This doesn't look correct. Why is code trying to ...
7 years, 4 months ago (2013-08-07 09:12:17 UTC) #5
Przemek Kudla
On 2013/08/06 17:11:26, tony wrote: > This doesn't look correct. Why is code trying to ...
7 years, 4 months ago (2013-08-07 09:12:17 UTC) #6
oshima_google
On 2013/08/07 09:09:06, Przemek Kudla wrote: > On 2013/08/06 20:32:00, oshima wrote: > > Can't ...
7 years, 4 months ago (2013-08-07 11:25:12 UTC) #7
Przemek Kudla
On 2013/08/07 11:25:12, oshima1 wrote: > On 2013/08/07 09:09:06, Przemek Kudla wrote: > > On ...
7 years, 4 months ago (2013-08-07 12:43:24 UTC) #8
tony
Now I understand what you are saying. We load the image after this DCHECK. I ...
7 years, 4 months ago (2013-08-07 16:55:02 UTC) #9
oshima
Thank you for clarification. I agree with tony's suggestion.
7 years, 4 months ago (2013-08-07 17:07:48 UTC) #10
Przemek Kudla
7 years, 4 months ago (2013-08-12 12:24:59 UTC) #11
Przemek Kudla
Could you review my patch again?
7 years, 4 months ago (2013-08-12 12:26:51 UTC) #12
oshima
lgtm, although I'm not owner.
7 years, 4 months ago (2013-08-14 20:45:58 UTC) #13
tony
Sorry, I missed this from earlier. LGTM2. I'll try the commit queue.
7 years, 4 months ago (2013-08-14 21:37:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkudla@opera.com/22418003/4002
7 years, 4 months ago (2013-08-14 21:38:24 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-08-15 01:35:09 UTC) #16
Message was sent while issue was closed.
Change committed as 217726

Powered by Google App Engine
This is Rietveld 408576698