Bug 1150851 - Use AppConstants.jsm in Toolkit/places and stop pre-processing PlacesUtils.jsm r=mak77

This commit is contained in:
Philip Chee 2015-04-07 16:09:49 +08:00
Родитель 3a0ac45225
Коммит 9db15a4aef
2 изменённых файлов: 5 добавлений и 11 удалений

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

@ -30,6 +30,7 @@ const { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
Cu.importGlobalProperties(["URL"]);
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/AppConstants.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "Services",
"resource://gre/modules/Services.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
@ -54,14 +55,10 @@ XPCOMUtils.defineLazyModuleGetter(this, "History",
// refresh instead.
const MIN_TRANSACTIONS_FOR_BATCH = 5;
#ifdef XP_MACOSX
// On Mac OSX, the transferable system converts "\r\n" to "\n\n", where we
// really just want "\n".
const NEWLINE= "\n";
#else
// On other platforms, the transferable system converts "\r\n" to "\n".
const NEWLINE = "\r\n";
#endif
// On Mac OSX, the transferable system converts "\r\n" to "\n\n", where
// we really just want "\n". On other platforms, the transferable system
// converts "\r\n" to "\n".
const NEWLINE = AppConstants.platform == "macosx" ? "\n" : "\r\n";
function QI_node(aNode, aIID) {
var result = null;

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

@ -70,9 +70,6 @@ if CONFIG['MOZ_PLACES']:
'PlacesDBUtils.jsm',
'PlacesSearchAutocompleteProvider.jsm',
'PlacesTransactions.jsm',
]
EXTRA_PP_JS_MODULES += [
'PlacesUtils.jsm',
]