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

Issue 7033022: Adding support for loading custom locale resources using a command line flag (Closed)

Created:
9 years, 7 months ago by ofri
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Adding support for loading custom locale resources using a command line flag. Loading pseudo-locale will now be done by passing --lang=myLocale --locale_res_path=path/to/pseudo-locale.pak This patch doesn't work on Windows. BUG=73052 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86426

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixing Jeremy's comments #

Total comments: 1

Patch Set 3 : Renaming as Mark suggested #

Patch Set 4 : Removing the 'Switch' suffix to match other switches and moving it to base_switches #

Total comments: 1

Patch Set 5 : Fixing alignment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M base/base_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M base/base_switches.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle_posix.cc View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
ofri
Hi Guys, do you mind take a look?
9 years, 7 months ago (2011-05-19 12:11:55 UTC) #1
jeremy
http://codereview.chromium.org/7033022/diff/1/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): http://codereview.chromium.org/7033022/diff/1/ui/base/resource/resource_bundle.cc#newcode20 ui/base/resource/resource_bundle.cc:20: const std::string kLocaleResourcePathSwitch = "locale_res_path"; Need a comment block ...
9 years, 7 months ago (2011-05-19 16:08:46 UTC) #2
Mark Mentovai
I think this is fine, I expect to LG it when you address Jeremy’s requests.
9 years, 7 months ago (2011-05-19 23:20:30 UTC) #3
ofri
Uploaded a new version. Do you mind take another look? http://codereview.chromium.org/7033022/diff/1/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): http://codereview.chromium.org/7033022/diff/1/ui/base/resource/resource_bundle.cc#newcode20 ...
9 years, 7 months ago (2011-05-23 08:42:50 UTC) #4
Mark Mentovai
LG otherwise http://codereview.chromium.org/7033022/diff/5001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/7033022/diff/5001/chrome/common/chrome_switches.cc#newcode578 chrome/common/chrome_switches.cc:578: const char kForceLocaleResourcesPathSwitch[] = "force_locale_resources_path"; I would ...
9 years, 7 months ago (2011-05-23 16:20:34 UTC) #5
ofri
PTAL
9 years, 7 months ago (2011-05-24 12:12:44 UTC) #6
jeremy
LGTM
9 years, 7 months ago (2011-05-24 12:17:05 UTC) #7
commit-bot: I haz the power
Try job failure for 7033022-8001 on linux: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux&number=28213
9 years, 7 months ago (2011-05-24 12:37:03 UTC) #8
commit-bot: I haz the power
Try job failure for 7033022-8001 on win: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=33115
9 years, 7 months ago (2011-05-24 13:10:53 UTC) #9
jeremy
LGTM
9 years, 7 months ago (2011-05-24 13:40:31 UTC) #10
commit-bot: I haz the power
Presubmit check for 7033022-10004 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-24 13:41:21 UTC) #11
Mark Mentovai
LGTM otherwise http://codereview.chromium.org/7033022/diff/10004/base/base_switches.cc File base/base_switches.cc (right): http://codereview.chromium.org/7033022/diff/10004/base/base_switches.cc#newcode26 base/base_switches.cc:26: const char kLocalePak[] = "locale_pak"; All of ...
9 years, 7 months ago (2011-05-24 13:46:03 UTC) #12
ofri
Sorry about the alignment. Completely missed it.
9 years, 7 months ago (2011-05-24 13:49:09 UTC) #13
Mark Mentovai
LGTM ui_switches would be preferable but it doesn’t exist.
9 years, 7 months ago (2011-05-24 13:50:10 UTC) #14
commit-bot: I haz the power
9 years, 7 months ago (2011-05-24 14:53:52 UTC) #15
Change committed as 86426

Powered by Google App Engine
This is Rietveld 408576698