mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1497581 - Avoid debug assertion with --disable-updater r=zbraniecki DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D104655
This commit is contained in:
parent
ae412ef826
commit
7d307fafee
@ -378,8 +378,10 @@ LocaleService::GetDefaultLocale(nsACString& aRetVal) {
|
||||
// just use our hard-coded default below.
|
||||
GetGREFileContents("update.locale", &locale);
|
||||
locale.Trim(" \t\n\r");
|
||||
#ifdef MOZ_UPDATER
|
||||
// This should never be empty.
|
||||
MOZ_ASSERT(!locale.IsEmpty());
|
||||
#endif
|
||||
if (CanonicalizeLanguageId(locale)) {
|
||||
mDefaultLocale.Assign(locale);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user