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

Issue 10686005: Add methods to add DataPack from open files (Closed)

Created:
8 years, 6 months ago by cjhopman
Modified:
8 years, 5 months ago
CC:
chromium-reviews, sadrul, jochen+watch-content_chromium.org, ben+watch_chromium.org, grt+watch_chromium.org, amit, jam, joi+watch-content_chromium.org, robertshield, darin-cc_chromium.org, pam+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add methods to add DataPack from open files On Android, renderer sandboxing prevents us from opening files and so ResourceBundle is initialized with file descriptors passed in at process creation. This change adds methods to DataPack and ResourceBundle to support loading/initializing from PlatformFile in addition to the current FilePath. Also, the current methods are renamed so that the naming is consistent between these two files. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145927

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -96 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/web_ui_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/chrome_test_suite.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/tools/mac_helpers/infoplist_strings_util.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/simple_resource_loader.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_main_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_content_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/test_aura_initializer.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/data_pack.h View 3 chunks +8 lines, -1 line 0 comments Download
M ui/base/resource/data_pack.cc View 1 3 chunks +17 lines, -1 line 0 comments Download
M ui/base/resource/data_pack_unittest.cc View 5 chunks +44 lines, -4 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 5 chunks +20 lines, -6 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 8 chunks +42 lines, -11 lines 0 comments Download
M ui/base/resource/resource_bundle_android.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M ui/base/resource/resource_bundle_aurax11.cc View 1 2 1 chunk +19 lines, -18 lines 0 comments Download
M ui/base/resource/resource_bundle_gtk.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M ui/base/resource/resource_bundle_mac.mm View 2 chunks +13 lines, -12 lines 0 comments Download
M ui/base/resource/resource_bundle_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle_win.cc View 1 chunk +16 lines, -12 lines 0 comments Download
M ui/test/test_suite.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/support/platform_support_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/support/platform_support_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/support/platform_support_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell_mac.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
cjhopman
grt: chrome_frame/ brettw: content/, webkit/ sail: ui/base/resource sky: chrome/, ui/test, ui/aura
8 years, 5 months ago (2012-06-27 21:23:29 UTC) #1
grt (UTC plus 2)
chrome_frame lgtm http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc#newcode89 ui/base/resource/data_pack.cc:89: UMA_HISTOGRAM_ENUMERATION("DataPack.LoadFromFile", INIT_FAILED, do you have a corresponding ...
8 years, 5 months ago (2012-06-28 14:24:05 UTC) #2
sail
LGTM! Looks really good.
8 years, 5 months ago (2012-06-28 15:48:15 UTC) #3
brettw
content/webkit LGTM
8 years, 5 months ago (2012-06-28 19:38:55 UTC) #4
cjhopman
http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc#newcode77 ui/base/resource/data_pack.cc:77: UMA_HISTOGRAM_ENUMERATION("DataPack.Load", INIT_FAILED, Should I change this key to DataPack.LoadFromPath ...
8 years, 5 months ago (2012-06-28 20:47:23 UTC) #5
grt (UTC plus 2)
http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc#newcode77 ui/base/resource/data_pack.cc:77: UMA_HISTOGRAM_ENUMERATION("DataPack.Load", INIT_FAILED, On 2012/06/28 20:47:23, cjhopman wrote: > Should ...
8 years, 5 months ago (2012-06-28 21:04:57 UTC) #6
cjhopman
jar@: Could you take a look at ui/base/resource/data_pack.cc and suggest an approach to the histogram ...
8 years, 5 months ago (2012-06-28 21:39:10 UTC) #7
jar (doing other things)
http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc#newcode89 ui/base/resource/data_pack.cc:89: UMA_HISTOGRAM_ENUMERATION("DataPack.LoadFromFile", INIT_FAILED, It is a bit strange to have ...
8 years, 5 months ago (2012-06-29 02:20:23 UTC) #8
cjhopman
http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): http://codereview.chromium.org/10686005/diff/1/ui/base/resource/data_pack.cc#newcode89 ui/base/resource/data_pack.cc:89: UMA_HISTOGRAM_ENUMERATION("DataPack.LoadFromFile", INIT_FAILED, On 2012/06/29 02:20:23, jar wrote: > It ...
8 years, 5 months ago (2012-06-29 20:30:53 UTC) #9
jar (doing other things)
histogram usage in data_pacck.cc LGTM
8 years, 5 months ago (2012-06-30 00:49:27 UTC) #10
cjhopman
ben@: could you check this for chrome/, ui/test, and ui/aura since sky is OOO.
8 years, 5 months ago (2012-07-09 23:32:34 UTC) #11
Ben Goodger (Google)
lgtm
8 years, 5 months ago (2012-07-10 15:08:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/10686005/6002
8 years, 5 months ago (2012-07-10 15:59:34 UTC) #13
commit-bot: I haz the power
Failed to apply patch for ui/base/resource/resource_bundle_aurax11.cc: While running patch -p1 --forward --force; patching file ui/base/resource/resource_bundle_aurax11.cc ...
8 years, 5 months ago (2012-07-10 15:59:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/10686005/5002
8 years, 5 months ago (2012-07-10 17:20:27 UTC) #15
commit-bot: I haz the power
8 years, 5 months ago (2012-07-10 19:18:06 UTC) #16
Change committed as 145927

Powered by Google App Engine
This is Rietveld 408576698