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

Issue 7677004: Switch to using .pak files for locale data on Windows. (Closed)

Created:
9 years, 4 months ago by tony
Modified:
9 years, 4 months ago
CC:
chromium-reviews, amit, pam+watch_chromium.org, dhollowa
Visibility:
Public.

Description

Switch to using .pak files for locale data on Windows. We were using .dlls, but the .pak files are smaller and this will allow us to share more code across platforms. - Remove app/locales.gyp (used on win to generate the locale dlls) and references to it in other gyp(i) files. - Update various packaging scripts. - Move functions from resource_bundle_posix.cc to resource_bundle.cc (LoadResourcesDataPak, UnloadLocaleResources, GetLocalizedString, LoadLocaleResources) and delete the corresponding functions from resource_bundle_win.cc. BUG=92724 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97941

Patch Set 1 #

Patch Set 2 : linux fixes #

Patch Set 3 : rebase #

Patch Set 4 : nacl win64 #

Patch Set 5 : fix autofill #

Total comments: 4

Patch Set 6 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -950 lines) Patch
M build/all.gyp View 2 chunks +0 lines, -2 lines 0 comments Download
D chrome/app/locales/locales.gyp View 1 chunk +0 lines, -678 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/mini_installer.gyp View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/mini_installer/chrome.release View 1 chunk +1 line, -1 line 0 comments Download
M chrome/tools/build/win/FILES View 1 chunk +49 lines, -49 lines 0 comments Download
M chrome/tools/build/win/FILES.cfg View 1 chunk +49 lines, -49 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 4 chunks +86 lines, -2 lines 0 comments Download
M ui/base/resource/resource_bundle_dummy.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ui/base/resource/resource_bundle_linux.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M ui/base/resource/resource_bundle_posix.cc View 1 4 chunks +1 line, -68 lines 0 comments Download
M ui/base/resource/resource_bundle_win.cc View 1 2 3 4 4 chunks +13 lines, -80 lines 0 comments Download
M views/views.gyp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
tony
rsesek: Can you review the ResourceBundle changes? cpu or bradnelson: Can you review the mini_installer/FILES ...
9 years, 4 months ago (2011-08-22 16:21:13 UTC) #1
Robert Sesek
resource_bundle* on the whole LGTM, but I'm not qualified to review the Windows-specific changes.
9 years, 4 months ago (2011-08-22 16:56:32 UTC) #2
tony
Carlos, can you review this patch? If not, let me know and I'll find someone ...
9 years, 4 months ago (2011-08-23 17:36:36 UTC) #3
cpu_(ooo_6.6-7.5)
lgtm I have this nagging feeling we forgot to do something for chrome frame but ...
9 years, 4 months ago (2011-08-23 21:48:25 UTC) #4
tony
9 years, 4 months ago (2011-08-23 22:30:51 UTC) #5
Thanks for the review!

http://codereview.chromium.org/7677004/diff/5001/ui/base/resource/resource_bu...
File ui/base/resource/resource_bundle.h (right):

http://codereview.chromium.org/7677004/diff/5001/ui/base/resource/resource_bu...
ui/base/resource/resource_bundle.h:87: // is responsible for cleaning up this
pointer.
On 2011/08/23 21:48:25, cpu wrote:
> cleaning = deleting?   sounds vague as is.

Switched to "deleting".

http://codereview.chromium.org/7677004/diff/5001/ui/base/resource/resource_bu...
File ui/base/resource/resource_bundle_win.cc (right):

http://codereview.chromium.org/7677004/diff/5001/ui/base/resource/resource_bu...
ui/base/resource/resource_bundle_win.cc:7: #include <atlbase.h>
On 2011/08/23 21:48:25, cpu wrote:
> so we don't need atlbase.h ?

Unfortunately, we still do (see the code at line 96).  It looks like we have
some IDS_ values that are compiled into chrome.dll so we need ATL to get those
back out.  My long term goal is to move all resources out of chrome.dll then we
can get rid of ATL completely.

Powered by Google App Engine
This is Rietveld 408576698