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

Issue 1996723002: Switch ResourceBundle LoadDataResourceBytes to return RefCountedMemory. (Closed)

Created:
4 years, 7 months ago by smaier
Modified:
4 years, 7 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, extensions-reviews_chromium.org, maniscalco+watch-blimp_chromium.org, jam, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, khushalsagar+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_chromium.org, dbeam+watch-ntp_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo, jochen+watch_chromium.org, jfweitz+watch_chromium.org, melevin+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, Jered, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, donnd+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch ResourceBundle LoadDataResourceBytes to return RefCountedMemory. This change allows LoadDataResourceBytes and LoadDataResourceBytesForScale to return memory that isn't in the bundle's memory map, to allow operations to be performed on the resources. TBR=dtrainor BUG=609219 Committed: https://crrev.com/a737aa3a7426abd5ae46ec97e35f8ac2e332a102 Cr-Commit-Position: refs/heads/master@{#395976}

Patch Set 1 #

Patch Set 2 : Updated based on trybot findings #

Patch Set 3 : Addressing iOS trybots #

Total comments: 4

Patch Set 4 : Addressed comments #

Patch Set 5 : Update to address newly added use #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -41 lines) Patch
M blimp/engine/common/blimp_content_client.h View 1 chunk +1 line, -1 line 0 comments Download
M blimp/engine/common/blimp_content_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/iframe_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/local_ntp_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_content_client.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chromecast/common/cast_content_client.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chromecast/common/cast_content_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/webui/web_ui_data_source_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/content_client.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/common/content_client.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/common/shell_content_client.h View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/common/shell_content_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/common/shell_content_client.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/common/shell_content_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M headless/lib/headless_content_client.h View 1 chunk +1 line, -1 line 0 comments Download
M headless/lib/headless_content_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/test/test_web_client.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/test/test_web_client.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/web_client.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M ios/web/public/web_client.mm View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ios/web/webui/crw_web_ui_manager.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ios/web/webui/web_ui_ios_data_source_impl.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle_ios.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996723002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996723002/1
4 years, 7 months ago (2016-05-19 21:23:58 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/163639) ios-device-gn on ...
4 years, 7 months ago (2016-05-19 21:33:18 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996723002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996723002/40001
4 years, 7 months ago (2016-05-20 19:54:22 UTC) #6
smaier
nasko@chromium.org: Please review changes in content eugenebut@chromium.org: Please review changes in ios dtrainor@chromium.org: Please review ...
4 years, 7 months ago (2016-05-20 20:52:13 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 20:53:48 UTC) #10
Daniel Erat
rubber-stamp lgtm for extensions/shell
4 years, 7 months ago (2016-05-20 20:58:45 UTC) #11
Eugene But (OOO till 7-30)
ios lgtm
4 years, 7 months ago (2016-05-20 21:36:04 UTC) #12
sky
chrome LGTM
4 years, 7 months ago (2016-05-20 22:34:54 UTC) #13
alokp
chromecast/ lgtm
4 years, 7 months ago (2016-05-20 22:37:26 UTC) #14
Sami
headless lgtm.
4 years, 7 months ago (2016-05-23 10:30:54 UTC) #15
nasko
content/ Rubberstamp LGTM (with one nit). https://codereview.chromium.org/1996723002/diff/40001/content/public/common/content_client.cc File content/public/common/content_client.cc (right): https://codereview.chromium.org/1996723002/diff/40001/content/public/common/content_client.cc#newcode97 content/public/common/content_client.cc:97: return NULL; nit: ...
4 years, 7 months ago (2016-05-24 21:05:44 UTC) #16
sadrul
https://codereview.chromium.org/1996723002/diff/40001/ui/base/resource/resource_bundle.h File ui/base/resource/resource_bundle.h (right): https://codereview.chromium.org/1996723002/diff/40001/ui/base/resource/resource_bundle.h#newcode99 ui/base/resource/resource_bundle.h:99: // Return a static memory resource or NULL to ...
4 years, 7 months ago (2016-05-24 22:36:59 UTC) #17
sadrul
On 2016/05/24 22:36:59, sadrul wrote: > https://codereview.chromium.org/1996723002/diff/40001/ui/base/resource/resource_bundle.h > File ui/base/resource/resource_bundle.h (right): > > https://codereview.chromium.org/1996723002/diff/40001/ui/base/resource/resource_bundle.h#newcode99 > ...
4 years, 7 months ago (2016-05-24 22:39:08 UTC) #18
smaier
Comments addressed https://codereview.chromium.org/1996723002/diff/40001/content/public/common/content_client.cc File content/public/common/content_client.cc (right): https://codereview.chromium.org/1996723002/diff/40001/content/public/common/content_client.cc#newcode97 content/public/common/content_client.cc:97: return NULL; On 2016/05/24 21:05:44, nasko (slow) ...
4 years, 7 months ago (2016-05-25 13:29:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996723002/60001
4 years, 7 months ago (2016-05-25 17:48:38 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/11455)
4 years, 7 months ago (2016-05-25 18:02:32 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996723002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996723002/80001
4 years, 7 months ago (2016-05-25 18:31:33 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-25 20:18:09 UTC) #30
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 20:21:07 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a737aa3a7426abd5ae46ec97e35f8ac2e332a102
Cr-Commit-Position: refs/heads/master@{#395976}

Powered by Google App Engine
This is Rietveld 408576698