rem: .createInstance(Components.interfaces.nsIAddressBook) 
add: .getService(Components.interfaces.nsIAddressBook) 
context: function AbDeleteDirectory(aURI){  var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);  var directory = GetDirectoryFromURI(aURI);  var confirmDeleteMessage;  var clearPrefsRequired = false;  if (directory.isMailList)    confirmDeleteMessage = gAddressBookBundle.getString("confirmDeleteMailingList");  else {    // Check if this address book is being used for collection    if (gPrefs.getCharPref("mail.collect_addressbook") == aURI &&        (gPrefs.getBoolPref("mail.collect_email_address_outgoing") ||         gPrefs.getBoolPref("mail.collect_email_address_incoming") ||         gPrefs.getBoolPref("mail.collect_email_address_newsgroup"))) {      var brandShortName = document.getElementById("bundle_brand").getString("brandShortName");      confirmDeleteMessage = gAddressBookBundle.getFormattedString("confirmDeleteCollectionAddressbook", [brandShortName]);      clearPrefsRequired = true;    }    else {      confirmDeleteMessage = gAddressBookBundle.getString("confirmDeleteAddressbook");    }  }  if (!promptService.confirm(window,                             gAddressBookBundle.getString(                                                directory.isMailList ?                                                "confirmDeleteMailingListTitle" :                                                "confirmDeleteAddressbookTitle"),                             confirmDeleteMessage))    return;  // First clear all the prefs if required  if (clearPrefsRequired) {    gPrefs.setBoolPref("mail.collect_email_address_outgoing", false);    gPrefs.setBoolPref("mail.collect_email_address_incoming", false);    gPrefs.setBoolPref("mail.collect_email_address_newsgroup", false);    // Also reset the displayed value so that we don't get a blank item in the    // prefs dialog if it gets enabled.    gPrefs.setCharPref("mail.collect_addressbook", kPersonalAddressbookURI);  }  Components.classes["@mozilla.org/addressbook;1"]            .createInstance(Components.interfaces.nsIAddressBook)            .deleteAddressBook(aURI);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/7bedc789ce4693f8b68d8f9969c41b7272a65e21/abCommon.js/clean/mail/components/addrbook/content/abCommon.js