Debug Settings Service draft
☠☠ backed out by 0115712e908d ☠ ☠
authorGregor Wagner <anygregor@gmail.com>
Mon, 19 May 2014 14:54:08 -0700
changeset 388108 5980ed31224916a086e245c3e9790f2e5f50ec51
parent 388107 8902b97a2aa13b1bb84fed2602fefcca6a10aaa8
child 388109 0115712e908d215cb0cc67097255d5cf7813480c
push id23132
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateFri, 15 Jul 2016 10:07:12 +0000
milestone32.0a1
Debug Settings Service
dom/settings/SettingsService.js
--- a/dom/settings/SettingsService.js
+++ b/dom/settings/SettingsService.js
@@ -1,16 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict"
 
 /* static functions */
-let DEBUG = 0;
+let DEBUG = 1;
 let debug;
 if (DEBUG)
   debug = function (s) { dump("-*- SettingsService: " + s + "\n"); }
 else
   debug = function (s) {}
 
 const Ci = Components.interfaces;
 const Cu = Components.utils;
@@ -224,16 +224,17 @@ SettingsService.prototype = {
   nextTick: function nextTick(aCallback, thisObj) {
     if (thisObj)
       aCallback = aCallback.bind(thisObj);
 
     Services.tm.currentThread.dispatch(aCallback, Ci.nsIThread.DISPATCH_NORMAL);
   },
 
   createLock: function createLock(aCallback) {
+    debug("SettingsService createLock!");
     var lock = new SettingsServiceLock(this);
     this._locks.enqueue(lock);
     this._settingsDB.ensureDB(
       function() { lock.createTransactionAndProcess(aCallback); },
       function() { dump("SettingsService failed to open DB!\n"); }
     );
     this.nextTick(function() { this._open = false; }, lock);
     return lock;