mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 921918 - 3.e/4: fix debug doesn't work when only turned on in pref. r=gene
This commit is contained in:
parent
46f7c99efe
commit
a66ecea6d1
@ -18,6 +18,9 @@ const RIL_MMSSERVICE_CONTRACTID = "@mozilla.org/mms/rilmmsservice;1";
|
|||||||
const RIL_MMSSERVICE_CID = Components.ID("{217ddd76-75db-4210-955d-8806cd8d87f9}");
|
const RIL_MMSSERVICE_CID = Components.ID("{217ddd76-75db-4210-955d-8806cd8d87f9}");
|
||||||
|
|
||||||
let DEBUG = false;
|
let DEBUG = false;
|
||||||
|
function debug(s) {
|
||||||
|
dump("-@- MmsService: " + s + "\n");
|
||||||
|
};
|
||||||
|
|
||||||
// Read debug setting from pref.
|
// Read debug setting from pref.
|
||||||
try {
|
try {
|
||||||
@ -2384,12 +2387,3 @@ MmsService.prototype = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([MmsService]);
|
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([MmsService]);
|
||||||
|
|
||||||
let debug;
|
|
||||||
if (DEBUG) {
|
|
||||||
debug = function (s) {
|
|
||||||
dump("-@- MmsService: " + s + "\n");
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
debug = function (s) {};
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user