From f48850d85ef802d572c69b2cd0bd2f2e68b4d339 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Mon, 26 Sep 2011 10:45:42 -0700 Subject: [PATCH] Bug 689194 - Load ctypes.jsm in Fennec Contacts code only when it's needed [r=mfinkle] --- mobile/modules/contacts.jsm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/modules/contacts.jsm b/mobile/modules/contacts.jsm index e3eec106164..56846125628 100644 --- a/mobile/modules/contacts.jsm +++ b/mobile/modules/contacts.jsm @@ -38,8 +38,6 @@ let EXPORTED_SYMBOLS = ["Contacts"]; const Cu = Components.utils; -Cu.import("resource://gre/modules/ctypes.jsm"); - let Contacts = { _providers: [], _contacts: [], @@ -88,6 +86,7 @@ let Contacts = { #ifndef ANDROID #ifndef XP_MACOSX #ifdef XP_UNIX +Cu.import("resource://gre/modules/ctypes.jsm"); Cu.import("resource:///modules/linuxTypes.jsm"); function EBookProvider() {