Bug 773845: lazy-load some social modules to see what effect that has on maxheap/allocs tests

This commit is contained in:
Gavin Sharp 2012-07-16 08:43:50 -07:00
Родитель 78805c69af
Коммит ebdbc80321
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -7,8 +7,10 @@
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/FrameWorker.jsm");
Cu.import("resource://gre/modules/WorkerAPI.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "getFrameWorkerHandle", "resource://gre/modules/FrameWorker.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "WorkerAPI", "resource://gre/modules/WorkerAPI.jsm");
const EXPORTED_SYMBOLS = ["SocialProvider"];

Просмотреть файл

@ -8,7 +8,8 @@ const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/SocialProvider.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "SocialProvider", "resource://gre/modules/SocialProvider.jsm");
// Internal helper methods and state
let SocialServiceInternal = {