Bug 888821 - B2G MMS: Expose "wap.UAProf.url" and "wap.UAProf.tagname" as new Settings entries in Gecko part. r=vyang, a=leo+
--- a/b2g/chrome/content/settings.js
+++ b/b2g/chrome/content/settings.js
@@ -174,16 +174,26 @@ SettingsListener.observe('language.curre
function(value) {
Services.prefs.setBoolPref('ril.cellbroadcast.disabled', value);
});
SettingsListener.observe('ril.radio.disabled', false,
function(value) {
Services.prefs.setBoolPref('ril.radio.disabled', value);
});
+
+ SettingsListener.observe('wap.UAProf.url', '',
+ function(value) {
+ Services.prefs.setCharPref('wap.UAProf.url', value);
+ });
+
+ SettingsListener.observe('wap.UAProf.tagname', 'x-wap-profile',
+ function(value) {
+ Services.prefs.setCharPref('wap.UAProf.tagname', value);
+ });
})();
//=================== DeviceInfo ====================
Components.utils.import('resource://gre/modules/XPCOMUtils.jsm');
Components.utils.import('resource://gre/modules/ctypes.jsm');
(function DeviceInfoToSettings() {
XPCOMUtils.defineLazyServiceGetter(this, 'gSettingsService',
'@mozilla.org/settingsService;1',