diff options
Diffstat (limited to 'chrome/common/extensions/extension_l10n_util.cc')
-rw-r--r-- | chrome/common/extensions/extension_l10n_util.cc | 2 |
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); } |