Bug 996438 - Import BookmarkJSONUtils.jsm lazily into PlacesBackups.jsm. r=mak.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 15 Apr 2014 18:20:28 -0700
changeset 178654 ed916d97eb27f7c7481614d176f0661ef0853dd0
parent 178653 6d0035b060374f0489bee57a0784c0d2be0ac17f
child 178655 b300ff71f9b0a57ea2fad3eba139085760806b63
push id42344
push usernnethercote@mozilla.com
push dateWed, 16 Apr 2014 01:21:15 +0000
treeherdermozilla-inbound@ed916d97eb27 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs996438
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 996438 - Import BookmarkJSONUtils.jsm lazily into PlacesBackups.jsm. r=mak.
toolkit/components/places/PlacesBackups.jsm
--- a/toolkit/components/places/PlacesBackups.jsm
+++ b/toolkit/components/places/PlacesBackups.jsm
@@ -8,21 +8,22 @@ this.EXPORTED_SYMBOLS = ["PlacesBackups"
 
 const Ci = Components.interfaces;
 const Cu = Components.utils;
 const Cc = Components.classes;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/PlacesUtils.jsm");
-Cu.import("resource://gre/modules/BookmarkJSONUtils.jsm");
 Cu.import("resource://gre/modules/Task.jsm");
 Cu.import("resource://gre/modules/osfile.jsm");
 Cu.import("resource://gre/modules/NetUtil.jsm");
 
+XPCOMUtils.defineLazyModuleGetter(this, "BookmarkJSONUtils",
+  "resource://gre/modules/BookmarkJSONUtils.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "Deprecated",
   "resource://gre/modules/Deprecated.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "OS",
   "resource://gre/modules/osfile.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "Sqlite",
   "resource://gre/modules/Sqlite.jsm");
 
 XPCOMUtils.defineLazyGetter(this, "localFileCtor",