summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_l10n_util.cc
diff options
context:
space:
mode:
authorcira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 18:33:55 +0000
committercira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 18:33:55 +0000
commit6d5ae9219593ea2bfc56b70dad0b7c46f614da60 (patch)
tree637c06270e4d4fb1dd3bac66ca31913ceca285d2 /chrome/common/extensions/extension_l10n_util.cc
parent9b90e654fa131ec06d8443950d49e61e5c7e433e (diff)
downloadchromium_src-6d5ae9219593ea2bfc56b70dad0b7c46f614da60.zip
chromium_src-6d5ae9219593ea2bfc56b70dad0b7c46f614da60.tar.gz
chromium_src-6d5ae9219593ea2bfc56b70dad0b7c46f614da60.tar.bz2
Make error checking more ICU friendly.
Review URL: http://codereview.chromium.org/343044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_l10n_util.cc')
-rw-r--r--chrome/common/extensions/extension_l10n_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension_l10n_util.cc b/chrome/common/extensions/extension_l10n_util.cc
index 8ff7ec6..0095227 100644
--- a/chrome/common/extensions/extension_l10n_util.cc
+++ b/chrome/common/extensions/extension_l10n_util.cc
@@ -88,7 +88,7 @@ void GetParentLocales(const std::string& current_locale,
parent_locales->push_back(parent);
UErrorCode err = U_ZERO_ERROR;
while (uloc_getParent(parent, parent, kNameCapacity, &err) > 0) {
- if (err != U_ZERO_ERROR)
+ if (U_FAILURE(err))
break;
parent_locales->push_back(parent);
}