nsresult rv; rv = bm_AddRefGlobals(); if (NS_FAILED(rv)) return rv;  rv = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID, nsnull, nsIRDFDataSource::GetIID(), (void**) &mInner); if (NS_FAILED(rv)) return rv;  rv = ReadBookmarks(); if (NS_FAILED(rv)) return rv;   rv = gRDF->RegisterDataSource(this, PR_FALSE); if (NS_FAILED(rv)) return rv;  return NS_OK;
mStream = aStream; mDataSource = aDataSource; mIEFavoritesRoot = nsnull; mFoundIEFavoritesRoot = PR_FALSE; return(NS_OK);
nsBookmarksService::Init(){	nsresult rv;	rv = bm_AddRefGlobals();	if (NS_FAILED(rv)) return rv;    rv = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID,                                            nsnull,                                            nsIRDFDataSource::GetIID(),                                            (void**) &mInner);    if (NS_FAILED(rv)) return rv;    rv = ReadBookmarks();    if (NS_FAILED(rv)) return rv;    // register this as a named data source with the RDF service    rv = gRDF->RegisterDataSource(this, PR_FALSE);    if (NS_FAILED(rv)) return rv;	return NS_OK;}