diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-25 07:27:57 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-25 07:27:57 +0000 |
commit | cdea81f62d479132b29de3e8386bb5a8093f6f58 (patch) | |
tree | 14ebc7221ce328973ba3f347d9450422ff875b25 /app/l10n_util.cc | |
parent | c918fadf42d42683cfd1366f6ff356a867d104b1 (diff) | |
download | chromium_src-cdea81f62d479132b29de3e8386bb5a8093f6f58.zip chromium_src-cdea81f62d479132b29de3e8386bb5a8093f6f58.tar.gz chromium_src-cdea81f62d479132b29de3e8386bb5a8093f6f58.tar.bz2 |
Landing http://codereview.chromium.org/146142
Fix broken IsLocaleAvailable. test_path should be updated with the result of
ReplaceExtension.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/l10n_util.cc')
-rw-r--r-- | app/l10n_util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/l10n_util.cc b/app/l10n_util.cc index f163584..70755fe 100644 --- a/app/l10n_util.cc +++ b/app/l10n_util.cc @@ -129,7 +129,8 @@ bool IsLocaleAvailable(const std::string& locale, return false; FilePath test_path = locale_path; - test_path.AppendASCII(locale).ReplaceExtension(kLocaleFileExtension); + test_path = + test_path.AppendASCII(locale).ReplaceExtension(kLocaleFileExtension); return file_util::PathExists(test_path) && SetICUDefaultLocale(locale); } |