Added brprof bootstrapping code (ifdef DEBUG_warren for now).

This commit is contained in:
warren%netscape.com 1999-03-25 08:20:19 +00:00
parent 0d46aaa627
commit 0a90374811
2 changed files with 16 additions and 1 deletions

View File

@ -38,6 +38,7 @@ LINCS= -I$(PUBLIC)\rdf \
-I$(PUBLIC)\raptor \
-I$(PUBLIC)\js \
-I$(PUBLIC)\dom \
-I$(PUBLIC)\brprof \
-I$(DEPTH)\rdf\base\src \
$(NULL)

View File

@ -50,6 +50,9 @@
#include "nsFileStream.h"
#include "nsSpecialSystemDirectory.h"
#include "prio.h"
#ifdef DEBUG_warren
#include "nsIBrowsingProfile.h" // XXX here to bootstrap browsing profile service
#endif
////////////////////////////////////////////////////////////////////////
// Interface IDs
@ -455,7 +458,18 @@ nsHistoryDataSource::Init(const char* uri)
historyFile += filename;
mCurrentFileSpec = historyFile;
return NS_OK;
#ifdef DEBUG_warren
// XXX here to bootstrap the browsing profile code -- move later
{
static NS_DEFINE_CID(kBrowsingProfileCID, NS_BROWSINGPROFILE_CID);
NS_WITH_SERVICE(nsIRDFObserver, brProf, kBrowsingProfileCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = AddObserver(brProf);
}
#endif
return rv;
}