gecko-dev/toolkit/xre
Zibi Braniecki a1a4f0b7c9 Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK

--HG--
extra : rebase_source : 883a91b249b6953b7872bfb9a8851e8be7257c7b
2017-03-11 18:43:11 -08:00
..
test Backed out changeset a50a4f9e972b (bug 1322554) for near-permaorange in Win8 debug updater xpcshell tests 2017-04-06 21:00:26 -07:00
Bootstrap.cpp Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin 2017-03-07 22:34:39 -05:00
Bootstrap.h Bug 1343075 - Use GeckoEditableSupport from PuppetWidget; r=masayuki r=rbarker r=snorp r=esawin 2017-03-07 22:34:39 -05:00
CreateAppData.cpp Bug 1321593 part A - Refactor nsXREAppData: 1) make nsXREAppData strongly own its members 2) rename it to mozilla::XREAppData 3) separate out the static compiled data into StaticXREAppData 4) Remove XRE_CreateAppData and XRE_FreeAppData 5) remove the struct size and related size-checking code which was only ever useful for cross-version compatibility, r=glandium 2016-12-02 09:07:24 -05:00
EventTracer.cpp Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and talos jobs. r=backout on a CLOSED TREE 2017-04-10 19:05:44 +02:00
EventTracer.h
glxtest.cpp
MacApplicationDelegate.h
MacApplicationDelegate.mm
MacAutoreleasePool.h
MacAutoreleasePool.mm
MacLaunchHelper.h
MacLaunchHelper.mm
Makefile.in
moz.build Bug 1351067 - add BUG_COMPONENT to toolkit/* files. r=myk,enndeakin,mossop 2017-04-09 05:43:43 -04:00
MozMeegoAppService.h
nsAndroidStartup.cpp Bug 1306327 - Move reading application.ini to XRE_main. r=bsmedberg 2017-01-10 16:43:23 +09:00
nsAppRunner.cpp Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike 2017-03-11 18:43:11 -08:00
nsAppRunner.h Bug 1345978, part 1 - Add a way to get the platform build id without the service manager. r=froydnj 2017-03-11 08:01:34 -08:00
nsAppStartupNotifier.cpp Bug 1309049 - move embedding/ files out of that directory, r=jst,mossop 2017-01-12 13:47:27 -08:00
nsAppStartupNotifier.h Bug 1309049 - move embedding/ files out of that directory, r=jst,mossop 2017-01-12 13:47:27 -08:00
nsCommandLineServiceMac.cpp
nsCommandLineServiceMac.h
nsConsoleWriter.cpp
nsEmbeddingModule.cpp Bug 1309049 - move embedding/ files out of that directory, r=jst,mossop 2017-01-12 13:47:27 -08:00
nsEmbedFunctions.cpp Bug 1355123 - Initialize gecko profiler properly for IPDL test runner. r=mstange,njn 2017-04-11 10:56:58 -04:00
nsGDKErrorHandler.cpp
nsGDKErrorHandler.h
nsIAppStartupNotifier.h Bug 1309049 - move embedding/ files out of that directory, r=jst,mossop 2017-01-12 13:47:27 -08:00
nsINativeAppSupport.idl Bug 1332892 - Remove obsolete hackaround from nsDefaultURIFixup.cpp. r=bz 2017-01-22 14:32:37 +09:00
nsIWinAppHelper.idl
nsNativeAppSupportBase.cpp
nsNativeAppSupportBase.h
nsNativeAppSupportCocoa.mm
nsNativeAppSupportDefault.cpp
nsNativeAppSupportUnix.cpp
nsNativeAppSupportWin.cpp Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron 2017-03-14 15:26:27 +13:00
nsNativeAppSupportWin.h
nsSigHandlers.cpp
nsSigHandlers.h
nsUpdateDriver.cpp Bug 1355361 - nsUpdateProcessor::ProcessUpdate should use the directory service instead of nsXREDirProvider (also removes app update gonk support). r=mhowell 2017-04-12 18:07:07 -07:00
nsUpdateDriver.h Bug 1355361 - nsUpdateProcessor::ProcessUpdate should use the directory service instead of nsXREDirProvider (also removes app update gonk support). r=mhowell 2017-04-12 18:07:07 -07:00
nsWindowsRestart.cpp
nsWindowsWMain.cpp
nsX11ErrorHandler.cpp bug 1331320 install X11 error handler through Xlib in plugin process as GTK2 does not use g_error r=glandium 2017-01-13 20:50:58 +13:00
nsX11ErrorHandler.h bug 1331320 install X11 error handler through Xlib in plugin process as GTK2 does not use g_error r=glandium 2017-01-13 20:50:58 +13:00
nsXREDirProvider.cpp Bug 1329294 Part 1: Ensure Content Temp Dir is created before use. r=bsmedberg 2017-04-10 14:38:13 +01:00
nsXREDirProvider.h
platform.ini
ProfileReset.cpp Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj 2016-12-14 09:32:21 -07:00
ProfileReset.h Bug 883627 - Updated CreateResetProfile() to use the existing profile name for the newly created profile, r=gijs 2017-02-09 15:29:58 -08:00
UIKitDirProvider.h
UIKitDirProvider.mm
updaterfileutils_osx.h
updaterfileutils_osx.mm