Bug 1352343 - Rename LocaleService::On* methods to LocaleService::*. r=jfkthame
MozReview-Commit-ID: LvEW9GcOodb
--- a/chrome/nsChromeRegistryChrome.cpp
+++ b/chrome/nsChromeRegistryChrome.cpp
@@ -734,17 +734,17 @@ nsChromeRegistryChrome::ManifestLocale(M
nsresult rv = OverrideLocalePackage(NS_LITERAL_CSTRING("global"), mainPackage);
if (NS_FAILED(rv)) {
return;
}
if (mainPackage.Equals(package)) {
// We should refresh the LocaleService, since the available
// locales changed.
- LocaleService::GetInstance()->OnAvailableLocalesChanged();
+ LocaleService::GetInstance()->AvailableLocalesChanged();
}
}
void
nsChromeRegistryChrome::ManifestSkin(ManifestProcessingContext& cx, int lineno,
char *const * argv, int flags)
{
char* package = argv[0];
--- a/intl/locale/LocaleService.h
+++ b/intl/locale/LocaleService.h
@@ -208,19 +208,19 @@ public:
* LocaleService itself, but in a couple special cases, we have the
* other component call this manually instead of sending a global event.
*
* If the result differs from the previous list, it will additionally
* trigger a corresponding event
*
* This code should be called only in the server mode..
*/
- void OnAvailableLocalesChanged();
- void OnRequestedLocalesChanged();
- void OnLocalesChanged();
+ void AvailableLocalesChanged();
+ void RequestedLocalesChanged();
+ void LocalesChanged();
/**
* Negotiates the best locales out of an ordered list of requested locales and
* a list of available locales.
*
* Internally it uses the following naming scheme:
*
* Requested - locales requested by the user