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

Issue 7744017: Updated *.pak file format to support both UTF8 and UTF16 (Closed)

Created:
9 years, 4 months ago by marcvs
Modified:
9 years, 3 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., jungshik at Google, Nebojša Ćirić
Visibility:
Public.

Description

Updated *.pak file format to support both UTF8 and UTF16 Inserted a new field in the header that specifies which encoding is to be used for the text resources. I also upped file format to version 4. BUG=76281 TEST=unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100973 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101213 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101846

Patch Set 1 #

Patch Set 2 : Added encoding field to *.pak header. #

Patch Set 3 : Finished supporting new file format. #

Patch Set 4 : Introduced BINARY pak files. #

Patch Set 5 : Chrome now works with UTF8-encoded messages in PAK files as well. #

Patch Set 6 : Cleaned up comments/ #

Total comments: 26

Patch Set 7 : Updated. #

Total comments: 13

Patch Set 8 : Updated. #

Patch Set 9 : Typo. #

Patch Set 10 : Rebase and commit. #

Patch Set 11 : Rebase and commit. #

Patch Set 12 : Rebase after removal of binary file. #

Patch Set 13 : Rebase after migration of data_pack to grit. #

Patch Set 14 : Prepared for commit. #

Patch Set 15 : Removed old test. #

Patch Set 16 : Updated simple resource loader. #

Patch Set 17 : Rebase. #

Patch Set 18 : Modified mac-specific parts of the code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -95 lines) Patch
M chrome/browser/prefs/pref_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -25 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/tools/mac_helpers/infoplist_strings_util.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +18 lines, -6 lines 0 comments Download
M chrome_frame/simple_resource_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -4 lines 0 comments Download
M tools/grit/grit/format/data_pack.py View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +41 lines, -20 lines 0 comments Download
M tools/grit/grit/format/data_pack_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -7 lines 0 comments Download
M tools/grit/grit/node/include.py View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M tools/grit/grit/node/message.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +12 lines, -6 lines 0 comments Download
M ui/base/resource/data_pack.h View 1 2 3 4 5 6 3 chunks +19 lines, -2 lines 0 comments Download
M ui/base/resource/data_pack.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +33 lines, -6 lines 0 comments Download
M ui/base/resource/data_pack_literal.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -7 lines 0 comments Download
M ui/base/resource/data_pack_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -2 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 15 16 2 chunks +14 lines, -4 lines 0 comments Download
M webkit/support/platform_support_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
marcvs
We should also decide on how to select which languages to encode in UTF16 and ...
9 years, 3 months ago (2011-08-29 19:46:57 UTC) #1
tony
http://codereview.chromium.org/7744017/diff/10001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): http://codereview.chromium.org/7744017/diff/10001/chrome/browser/themes/browser_theme_pack.cc#newcode32 chrome/browser/themes/browser_theme_pack.cc:32: const int kThemePackVersion = 17; Please bump the kThemePackVersion ...
9 years, 3 months ago (2011-08-29 21:24:39 UTC) #2
marcvs
http://codereview.chromium.org/7744017/diff/10001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): http://codereview.chromium.org/7744017/diff/10001/chrome/browser/themes/browser_theme_pack.cc#newcode32 chrome/browser/themes/browser_theme_pack.cc:32: const int kThemePackVersion = 17; On 2011/08/29 21:24:39, tony ...
9 years, 3 months ago (2011-08-30 07:58:54 UTC) #3
tony
Almost done! Just a couple small nits left, then I think we can land this ...
9 years, 3 months ago (2011-08-30 21:19:57 UTC) #4
marcvs
http://codereview.chromium.org/7744017/diff/15003/tools/data_pack/repack.py File tools/data_pack/repack.py (right): http://codereview.chromium.org/7744017/diff/15003/tools/data_pack/repack.py#newcode23 tools/data_pack/repack.py:23: #new_resources, new_encoding = data_pack.ReadDataPack(filename) On 2011/08/30 21:19:58, tony wrote: ...
9 years, 3 months ago (2011-08-30 22:17:22 UTC) #5
tony
LGTM! I will try running this through the try bots and landing it for you ...
9 years, 3 months ago (2011-08-30 22:23:00 UTC) #6
tony
The last patch to remove string resources from chrome.dll got landed so we can probably ...
9 years, 3 months ago (2011-09-08 22:41:42 UTC) #7
adriansc
On Thu, Sep 8, 2011 at 3:41 PM, <tony@chromium.org> wrote: > The last patch to ...
9 years, 3 months ago (2011-09-08 22:54:04 UTC) #8
commit-bot: I haz the power
Change committed as 100973
9 years, 3 months ago (2011-09-13 21:45:19 UTC) #9
commit-bot: I haz the power
Change committed as 101213
9 years, 3 months ago (2011-09-15 01:15:46 UTC) #10
levin
On 2011/09/15 01:15:46, I haz the power (commit-bot) wrote: > Change committed as 101213 This ...
9 years, 3 months ago (2011-09-15 02:09:22 UTC) #11
levin
9 years, 3 months ago (2011-09-15 02:23:02 UTC) #12
I think the link I put in above was broken.

Here's a comma separated list of tests that broke with this change. It is a long
list.

fast/dom/HTMLTextAreaElement/reset-textarea.html,fast/dom/isindex-001.html,fast/dom/isindex-002.html,fast/forms/blankbuttons.html,fast/forms/box-shadow-override.html,fast/forms/button-default-title.html,fast/forms/file-input-direction.html,fast/forms/hidden-input-file.html,fast/forms/input-appearance-height.html,fast/forms/input-file-re-render.html,fast/forms/input-first-letter.html,fast/forms/isindex-placeholder.html,fast/forms/text-style-color.html,fast/forms/validation-message-appearance.html,fast/html/details-no-summary1.html,fast/html/details-no-summary2.html,fast/html/details-no-summary3.html,fast/html/details-no-summary4.html,fast/html/details-remove-summary-1-and-click.html,fast/html/details-remove-summary-1.html,fast/html/details-remove-summary-4-and-click.html,fast/html/details-remove-summary-4.html,fast/html/keygen.html,tables/mozilla/bugs/bug39209.html,tables/mozill

a/bugs/bug4429.html,fast/forms/005.html,fast/forms/input-file-label.html,fast/invalid/residual-style.html,fast/parser/fragment-parser.html,fast/replaced/table-percent-height-text-controls.html,html5lib/runner.html,http/tests/misc/isindex-with-no-form-base-href.html,http/tests/misc/isindex-with-no-form.html

Powered by Google App Engine
This is Rietveld 408576698