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

Issue 10270023: Add new ResourceBundle::Delegate interface. (Closed)

Created:
8 years, 7 months ago by Marshall
Modified:
8 years, 7 months ago
CC:
chromium-reviews, jshin+watch_chromium.org, tfarina
Visibility:
Public.

Description

Add new ResourceBundle::Delegate interface. BUG=125351 TEST=ResourceBundle.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136039

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Total comments: 24

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+584 lines, -230 lines) Patch
M ash/shell/content_client/shell_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/shell_main_parts.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/shell_main_parts_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/diagnostics/diagnostics_main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/service_process.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/chrome_test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/tools/profiles/generate_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/demo/demo_main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ui/base/l10n/l10n_util.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -4 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +77 lines, -15 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +168 lines, -111 lines 0 comments Download
M ui/base/resource/resource_bundle_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle_aurax11.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +25 lines, -20 lines 0 comments Download
M ui/base/resource/resource_bundle_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +58 lines, -35 lines 0 comments Download
M ui/base/resource/resource_bundle_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +221 lines, -18 lines 0 comments Download
M ui/base/resource/resource_bundle_win.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -5 lines 0 comments Download
M ui/test/test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/content_client/examples_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ui/views/run_all_unittests.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
Marshall
@sail: Please review. If you agree with the API changes I'll proceed with updating the ...
8 years, 7 months ago (2012-04-30 20:36:56 UTC) #1
Marshall
On 2012/04/30 20:36:56, Marshall wrote: > @sail: Please review. If you agree with the API ...
8 years, 7 months ago (2012-04-30 20:38:09 UTC) #2
tfarina
http://codereview.chromium.org/10270023/diff/1/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): http://codereview.chromium.org/10270023/diff/1/ui/base/resource/resource_bundle.h#newcode66 ui/base/resource/resource_bundle.h:66: class Delegate { nit: please, move this to a ...
8 years, 7 months ago (2012-04-30 20:42:33 UTC) #3
Marshall
http://codereview.chromium.org/10270023/diff/1/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): http://codereview.chromium.org/10270023/diff/1/ui/base/resource/resource_bundle.h#newcode66 ui/base/resource/resource_bundle.h:66: class Delegate { On 2012/04/30 20:42:33, tfarina wrote: > ...
8 years, 7 months ago (2012-04-30 20:55:43 UTC) #4
sail
http://codereview.chromium.org/10270023/diff/2003/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): http://codereview.chromium.org/10270023/diff/2003/ui/base/resource/resource_bundle.h#newcode84 ui/base/resource/resource_bundle.h:84: virtual gfx::Image* GetImageNamed(int resource_id) = 0; can you have ...
8 years, 7 months ago (2012-04-30 21:14:43 UTC) #5
Marshall
http://codereview.chromium.org/10270023/diff/2003/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): http://codereview.chromium.org/10270023/diff/2003/ui/base/resource/resource_bundle.h#newcode84 ui/base/resource/resource_bundle.h:84: virtual gfx::Image* GetImageNamed(int resource_id) = 0; On 2012/04/30 21:14:43, ...
8 years, 7 months ago (2012-04-30 21:50:10 UTC) #6
Marshall
@sail: How would you feel if we added a new static method (InitSharedInstanceWithLocaleAndDelegate?) instead of ...
8 years, 7 months ago (2012-04-30 22:03:26 UTC) #7
sail
On 2012/04/30 22:03:26, Marshall wrote: > @sail: How would you feel if we added a ...
8 years, 7 months ago (2012-04-30 22:31:27 UTC) #8
sail
Looks good to me so far. The only thing I'm not sure about is the ...
8 years, 7 months ago (2012-04-30 22:33:26 UTC) #9
tony
I'm still working on this review, but won't have time to finish until tomorrow. Sorry! ...
8 years, 7 months ago (2012-05-01 15:56:48 UTC) #10
Marshall
Also updated the patch set to Chromium revision 134688. http://codereview.chromium.org/10270023/diff/2003/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): http://codereview.chromium.org/10270023/diff/2003/ui/base/resource/resource_bundle.h#newcode211 ui/base/resource/resource_bundle.h:211: ...
8 years, 7 months ago (2012-05-01 17:29:41 UTC) #11
sail
LGTM!
8 years, 7 months ago (2012-05-01 17:31:38 UTC) #12
Marshall
Added unit tests. Waiting for the rest of tony's comments and then I'll update call ...
8 years, 7 months ago (2012-05-01 22:54:17 UTC) #13
tony
http://codereview.chromium.org/10270023/diff/15001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): http://codereview.chromium.org/10270023/diff/15001/ui/base/resource/resource_bundle.cc#newcode94 ui/base/resource/resource_bundle.cc:94: !delegate_->GetPathForResourcePack(pack_name, &pack_path, scale_factor)) { i.e., change this to if ...
8 years, 7 months ago (2012-05-02 20:41:20 UTC) #14
Marshall
rohitrao@ and rsesek@ have requested that we use gfx::Image instead of scoped_ptr<gfx::Image> because the underlying ...
8 years, 7 months ago (2012-05-03 19:10:54 UTC) #15
sail
LGTM changes look good to me
8 years, 7 months ago (2012-05-03 19:34:48 UTC) #16
Robert Sesek
LGTM http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.cc#newcode92 ui/base/resource/resource_bundle.cc:92: DCHECK(!path.empty()); Good! Callers were doing this and it ...
8 years, 7 months ago (2012-05-03 19:53:57 UTC) #17
tony
LGTM2 http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.cc#newcode92 ui/base/resource/resource_bundle.cc:92: DCHECK(!path.empty()); On 2012/05/03 19:53:57, rsesek wrote: > Good! ...
8 years, 7 months ago (2012-05-03 20:35:41 UTC) #18
Marshall
http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.cc#newcode462 ui/base/resource/resource_bundle.cc:462: static gfx::Image empty_image; On 2012/05/03 20:35:42, tony wrote: > ...
8 years, 7 months ago (2012-05-04 14:41:03 UTC) #19
tony
Still LGTM, but please get a green try run. http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.h#newcode22 ui/base/resource/resource_bundle.h:22: ...
8 years, 7 months ago (2012-05-04 17:10:51 UTC) #20
Marshall
Working on getting a green try run :-). http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): http://codereview.chromium.org/10270023/diff/25001/ui/base/resource/resource_bundle.h#newcode22 ui/base/resource/resource_bundle.h:22: #include ...
8 years, 7 months ago (2012-05-04 17:28:41 UTC) #21
tony
On 2012/05/04 17:28:41, Marshall wrote: > So I misspoke earlier. It appears to be an ...
8 years, 7 months ago (2012-05-04 17:44:59 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marshall@chromium.org/10270023/40042
8 years, 7 months ago (2012-05-07 14:11:14 UTC) #23
commit-bot: I haz the power
Presubmit check for 10270023-40042 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-07 14:11:40 UTC) #24
Marshall
@sky: Can you approve as ui & ash OWNER? Thanks.
8 years, 7 months ago (2012-05-07 14:14:34 UTC) #25
sky
LGTM
8 years, 7 months ago (2012-05-09 14:33:17 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marshall@chromium.org/10270023/40042
8 years, 7 months ago (2012-05-09 14:37:56 UTC) #27
commit-bot: I haz the power
8 years, 7 months ago (2012-05-09 15:57:52 UTC) #28
Change committed as 136039

Powered by Google App Engine
This is Rietveld 408576698