Bug 888821 - B2G MMS: Expose "wap.UAProf.url" and "wap.UAProf.tagname" as new Settings entries in Gecko part. r=vyang, a=leo+
authorChia-hung Tai <ctai@mozilla.com>
Wed, 17 Jul 2013 13:47:31 +0800 (2013-07-17)
changeset 119771 34cf7d19e76b75855e93dd2857bb2485a6d1b94f
parent 119770 bc4f307764bd33cbdb135a635006ade2d7c97bdd
child 119772 90230132386b26bbf150884780b75e988013a161
push id980
push userryanvm@gmail.com
push dateThu, 18 Jul 2013 20:06:33 +0000 (2013-07-18)
reviewersvyang, leo
bugs888821
milestone18.1
Bug 888821 - B2G MMS: Expose "wap.UAProf.url" and "wap.UAProf.tagname" as new Settings entries in Gecko part. r=vyang, a=leo+
b2g/chrome/content/settings.js
--- 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',