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

Issue 28171: Wire up resource bundles on the mac:... (Closed)

Created:
11 years, 10 months ago by TVL
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Wire up resource bundles on the mac: - compile resource_bundle - add resource_bundle_mac by cloning the linux and using some NSBundle to find the files. - enable resource bundles on the mac in the calling code. - added script to app target to repack .pak files into larger chunks (chrome, theme, and localized bits). - added script to copy repacked files into the app bundle. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10460

Patch Set 1 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -123 lines) Patch
M chrome/app/chrome_dll_main.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/browser_main.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/chrome.xcodeproj/project.pbxproj View 6 chunks +36 lines, -0 lines 0 comments Download
M chrome/common/l10n_util.cc View 3 chunks +0 lines, -15 lines 0 comments Download
M chrome/common/resource_bundle.h View 3 chunks +6 lines, -5 lines 0 comments Download
A + chrome/common/resource_bundle_mac.mm View 3 chunks +32 lines, -57 lines 10 comments Download
M chrome/common/temp_scaffolding_stubs.cc View 2 chunks +0 lines, -38 lines 0 comments Download
A chrome/tools/mac_copy_grit_resources.sh View 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/tools/mac_repack_grit_resources.sh View 1 chunk +34 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
TVL
11 years, 10 months ago (2009-02-26 04:01:54 UTC) #1
Mark Mentovai
lg tm, just a couple of nits. http://codereview.chromium.org/28171/diff/1/6 File chrome/common/resource_bundle_mac.mm (right): http://codereview.chromium.org/28171/diff/1/6#newcode7 Line 7: #include ...
11 years, 10 months ago (2009-02-26 04:08:41 UTC) #2
TVL
11 years, 10 months ago (2009-02-26 12:25:34 UTC) #3
http://codereview.chromium.org/28171/diff/1/6
File chrome/common/resource_bundle_mac.mm (right):

http://codereview.chromium.org/28171/diff/1/6#newcode7
Line 7: #include <Foundation/Foundation.h>
On 2009/02/26 04:08:42, Mark Mentovai wrote:
> #import Cocoa headers.

done (we don't want the min needed headers?)

http://codereview.chromium.org/28171/diff/1/6#newcode33
Line 33: base::DataPack* LoadResourceDataPack(NSString *name) {
On 2009/02/26 04:08:42, Mark Mentovai wrote:
> There's no extra level of indentation in an namespace.

Done.

http://codereview.chromium.org/28171/diff/1/6#newcode34
Line 34: base::DataPack *resource_pack = NULL;
On 2009/02/26 04:08:42, Mark Mentovai wrote:
> A pet peeve of mine is code that can't decide whether it wants to do type* v
or
> type *v.  You've flipped styles between the function declaration and the
> variables.

Done.

http://codereview.chromium.org/28171/diff/1/6#newcode51
Line 51: }
On 2009/02/26 04:08:42, Mark Mentovai wrote:
> At the end of the namespace:
> 
> }  // namespace

Done.

http://codereview.chromium.org/28171/diff/1/6#newcode55
Line 55: << "ignoring resource langage for cocoa's choice";
On 2009/02/26 04:08:42, Mark Mentovai wrote:
> I have no idea what this message means or why it has anything to do with
> pref_locale.size().  Care to expound?

Done.

http://codereview.chromium.org/28171/diff/1/9
File chrome/tools/mac_repack_grit_resources.sh (right):

http://codereview.chromium.org/28171/diff/1/9#newcode1
Line 1: #!/bin/sh
On 2009/02/26 04:08:42, Mark Mentovai wrote:
> These scripts are OK, they don't apply directly as-is to the gyp build but
I'll
> figure that out tomorrow.

Yea, rather then try to make them more fancy to handle deps, etc. I went simple
until I knew how to make them work in both worlds.

Powered by Google App Engine
This is Rietveld 408576698