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

Issue 7763006: Load both language packs and the resource dlls in ChromeFrame and look for localized strings (Closed)

Created:
9 years, 4 months ago by ananta
Modified:
9 years, 4 months ago
Reviewers:
tony
CC:
chromium-reviews, amit
Visibility:
Public.

Description

Load both language packs and the resource dlls in ChromeFrame and look for localized strings in the language pack and the other resources like dialogs in the dll. The latter part is done automatically by ATL. BUG=94362 TEST=No change in behavior. The resources should continue to load as before. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98502

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -55 lines) Patch
M chrome_frame/simple_resource_loader.h View 1 2 3 chunks +15 lines, -6 lines 0 comments Download
M chrome_frame/simple_resource_loader.cc View 1 2 6 chunks +50 lines, -40 lines 0 comments Download
M chrome_frame/test/simple_resource_loader_test.cc View 1 2 3 2 chunks +33 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
ananta
9 years, 4 months ago (2011-08-26 21:11:07 UTC) #1
tony
LGTM http://codereview.chromium.org/7763006/diff/2004/chrome_frame/simple_resource_loader.cc File chrome_frame/simple_resource_loader.cc (right): http://codereview.chromium.org/7763006/diff/2004/chrome_frame/simple_resource_loader.cc#newcode108 chrome_frame/simple_resource_loader.cc:108: &data_pack_, &locale_pack_path)) { Nit: Maybe we should just ...
9 years, 4 months ago (2011-08-26 21:36:29 UTC) #2
ananta
9 years, 4 months ago (2011-08-26 21:50:17 UTC) #3
Thanks for the quick review.

http://codereview.chromium.org/7763006/diff/2004/chrome_frame/simple_resource...
File chrome_frame/simple_resource_loader.cc (right):

http://codereview.chromium.org/7763006/diff/2004/chrome_frame/simple_resource...
chrome_frame/simple_resource_loader.cc:108: &data_pack_, &locale_pack_path)) {
On 2011/08/26 21:36:30, tony wrote:
> Nit: Maybe we should just return the language as a wstring rather than
> locale_pack_path.

Done.

http://codereview.chromium.org/7763006/diff/2004/chrome_frame/simple_resource...
File chrome_frame/simple_resource_loader.h (right):

http://codereview.chromium.org/7763006/diff/2004/chrome_frame/simple_resource...
chrome_frame/simple_resource_loader.h:62: FilePath* file_path);
On 2011/08/26 21:36:30, tony wrote:
> Nit: Maybe renamed file_path to pak_file_path?

Replaced file_path with the language parameter as requested.

http://codereview.chromium.org/7763006/diff/2004/chrome_frame/simple_resource...
chrome_frame/simple_resource_loader.h:73: ui::DataPack* data_pack_;
On 2011/08/26 21:36:30, tony wrote:
> Nit: You could probably make this a scoped_ptr.  If not, you could forward
> declare the type.
Removed the include of the file here and replaced it with a forward declaration.

Powered by Google App Engine
This is Rietveld 408576698