зеркало из https://github.com/mozilla/gecko-dev.git
Bug 921918 - 3.e/4: fix debug doesn't work when only turned on in pref. r=gene
This commit is contained in:
Родитель
68c1c1857d
Коммит
2061a1352b
|
@ -18,6 +18,9 @@ const RIL_MMSSERVICE_CONTRACTID = "@mozilla.org/mms/rilmmsservice;1";
|
|||
const RIL_MMSSERVICE_CID = Components.ID("{217ddd76-75db-4210-955d-8806cd8d87f9}");
|
||||
|
||||
let DEBUG = false;
|
||||
function debug(s) {
|
||||
dump("-@- MmsService: " + s + "\n");
|
||||
};
|
||||
|
||||
// Read debug setting from pref.
|
||||
try {
|
||||
|
@ -2384,12 +2387,3 @@ MmsService.prototype = {
|
|||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([MmsService]);
|
||||
|
||||
let debug;
|
||||
if (DEBUG) {
|
||||
debug = function (s) {
|
||||
dump("-@- MmsService: " + s + "\n");
|
||||
};
|
||||
} else {
|
||||
debug = function (s) {};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче