mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
429ae74074
This new method allows for the user to override the long and short date and time patterns by prefs. If no overrides are set or it fails while processing the prefs, it will fallback to the existing methods for determining the patterns. Since the user may have only overriden one of date or time, it is necessary to be able to look up the other separately and combine the results. This adds a prefix callback that watches the new prefs and flushes the cache if they change. Otherwise, the user would have to restart the browser to see the results of changing a pref, and would make testing more difficult. Unregistering this callback required changes to the destructor, which was previously defined separately on each operating system. A new RemoveObservers method has been added to handle OS specific cleanup. Differential Revision: https://phabricator.services.mozilla.com/D94433 |
||
---|---|---|
.. | ||
moz.build | ||
OSPreferences_mac.cpp |