Bustage fix for bug 329741: teach head_bookmarks.js about NS_APP_HISTORY_50_FILE (which is now required by nsNavHistory::init)

This commit is contained in:
gavin@gavinsharp.com 2008-03-18 07:40:54 -07:00
parent 4f7ebb45ba
commit 7c8ca96d95

View File

@ -38,6 +38,8 @@
* ***** END LICENSE BLOCK ***** */
const NS_APP_USER_PROFILE_50_DIR = "ProfD";
const NS_APP_HISTORY_50_FILE = "UHist";
const Ci = Components.interfaces;
const Cc = Components.classes;
const Cr = Components.results;
@ -64,6 +66,11 @@ if (!profileDir) {
if (prop == NS_APP_USER_PROFILE_50_DIR) {
return dirSvc.get("CurProcD", Ci.nsIFile);
}
if (prop == NS_APP_HISTORY_50_FILE) {
var histFile = dirSvc.get("CurProcD", Ci.nsIFile);
histFile.append("history.dat");
return histFile;
}
throw Cr.NS_ERROR_FAILURE;
},
QueryInterface: function(iid) {