Bug 760898: Set dom.mozApps.used when the Apps DOM API is used; r=fabrice

This commit is contained in:
Anant Narayanan 2012-06-26 13:12:33 -07:00
parent 3d0ac8bd98
commit 7ac9ca93dc

View File

@ -105,6 +105,10 @@ let DOMApplicationRegistry = {
}, },
receiveMessage: function(aMessage) { receiveMessage: function(aMessage) {
// nsIPrefBranch throws if pref does not exist, faster to simply write
// the pref instead of first checking if it is false.
Services.prefs.setBoolPref("dom.mozApps.used", true);
let msg = aMessage.json; let msg = aMessage.json;
switch (aMessage.name) { switch (aMessage.name) {