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

Issue 2311223003: [chromecast] Add ResourceBundle::LoadLocalizedResourceBytes(). (Closed)

Created:
4 years, 3 months ago by gfhuang
Modified:
4 years, 3 months ago
Reviewers:
slan, byungchul, sky, Dan Beam
CC:
chromium-reviews, alokp+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[chromecast] Add ResourceBundle::LoadLocalizedResourceBytes() to get binary data from locale_resources_data_. Also fix an crash in web_ui_data_source_impl that GetDataResourceBytes() could return nullptr. BUG=643886 Committed: https://crrev.com/2bbbe9e7582e2e269471741234da72c09288d1da Cr-Commit-Position: refs/heads/master@{#416787}

Patch Set 1 #

Total comments: 1

Patch Set 2 : [chromecast] Add ResourceBundle::GetLocalizedResourceBytes(). #

Patch Set 3 : [chromecast] Add ResourceBundle::LoadLocalizedResourceBytes() to to get binary data from locale_res… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M chromecast/common/cast_content_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/webui/web_ui_data_source_impl.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
gfhuang
4 years, 3 months ago (2016-09-06 18:42:20 UTC) #3
sky
If this is intended for images why aren't you using one of the image loading ...
4 years, 3 months ago (2016-09-06 20:33:11 UTC) #4
gfhuang
On 2016/09/06 20:33:11, sky wrote: > If this is intended for images why aren't you ...
4 years, 3 months ago (2016-09-06 20:47:25 UTC) #5
byungchul
lgtm https://codereview.chromium.org/2311223003/diff/1/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): https://codereview.chromium.org/2311223003/diff/1/ui/base/resource/resource_bundle.h#newcode236 ui/base/resource/resource_bundle.h:236: base::RefCountedMemory* GetLocalizedResourceBytes(int message_id); LoadLocalizedResourceBytes(int resource_id)
4 years, 3 months ago (2016-09-06 20:54:54 UTC) #8
sky
Ok, LGTM
4 years, 3 months ago (2016-09-06 21:57:12 UTC) #9
Dan Beam
lgtm
4 years, 3 months ago (2016-09-06 22:05:50 UTC) #12
slan
cast lgtm
4 years, 3 months ago (2016-09-06 22:08:14 UTC) #13
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/2311223003/40001
4 years, 3 months ago (2016-09-06 22:45:02 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-07 00:12:29 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 00:15:56 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2bbbe9e7582e2e269471741234da72c09288d1da
Cr-Commit-Position: refs/heads/master@{#416787}

Powered by Google App Engine
This is Rietveld 408576698