make simple-storage prefs reflect move to addon-kit package
authorMyk Melez <myk@mozilla.org>
Tue, 30 Nov 2010 16:25:33 -0800
changeset 1157 6287c93b6dd48bf1367c770fa217dd073835c62c
parent 1156 d9dc2d7ccafffa583f07d31a5ded5ba1e6ef2f44
child 1158 4652ea39c218632f587d52bd30a69bde801346b5
push id474
push userbwarner@mozilla.com
push dateWed, 01 Dec 2010 15:10:18 +0000
make simple-storage prefs reflect move to addon-kit package
packages/addon-kit/lib/simple-storage.js
packages/addon-kit/tests/test-simple-storage.js
--- a/packages/addon-kit/lib/simple-storage.js
+++ b/packages/addon-kit/lib/simple-storage.js
@@ -42,20 +42,20 @@ const {Cc,Ci} = require("chrome");
 const file = require("file");
 const prefs = require("preferences-service");
 const jpSelf = require("self");
 const timer = require("timer");
 const unload = require("unload");
 const { EventEmitter } = require("events");
 const { Trait } = require("traits");
 
-const WRITE_PERIOD_PREF = "jetpack.api-utils.simple-storage.writePeriod";
+const WRITE_PERIOD_PREF = "jetpack.addon-kit.simple-storage.writePeriod";
 const WRITE_PERIOD_DEFAULT = 300000; // 5 minutes
 
-const QUOTA_PREF = "jetpack.api-utils.simple-storage.quota";
+const QUOTA_PREF = "jetpack.addon-kit.simple-storage.quota";
 const QUOTA_DEFAULT = 5242880; // 5 MiB
 
 
 // simpleStorage.storage
 exports.__defineGetter__("storage", function () manager.root);
 exports.__defineSetter__("storage", function (val) manager.root = val);
 
 // simpleStorage.quotaUsage
--- a/packages/addon-kit/tests/test-simple-storage.js
+++ b/packages/addon-kit/tests/test-simple-storage.js
@@ -36,17 +36,17 @@
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 const file = require("file");
 const prefs = require("preferences-service");
 
-const QUOTA_PREF = "jetpack.api-utils.simple-storage.quota";
+const QUOTA_PREF = "jetpack.addon-kit.simple-storage.quota";
 
 let {Cc,Ci} = require("chrome");
 let storeFile = Cc["@mozilla.org/file/directory_service;1"].
                 getService(Ci.nsIProperties).
                 get("ProfD", Ci.nsIFile);
 storeFile.append("jetpack");
 storeFile.append(packaging.jetpackID);
 storeFile.append("simple-storage");