Addressing sr comments from darin. Bug 322369.

Original committer: bryner%brianryner.com
Original revision: 1.2
Original date: 2006/01/18 01:21:36
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 15:48:15 +00:00
Родитель 09bf21961c
Коммит 0b622bda77
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -195,6 +195,8 @@ NS_IMETHODIMP
nsMorkHistoryImporter::ImportHistory(nsIFile *aFile,
nsINavHistoryService *aHistory)
{
NS_ENSURE_TRUE(aFile && aHistory, NS_ERROR_NULL_POINTER);
// Read in the mork file
nsMorkReader reader;
nsresult rv = reader.Init();
@ -223,6 +225,7 @@ nsMorkHistoryImporter::ImportHistory(nsIFile *aFile,
// Now add the results to history
nsNavHistory *history = NS_STATIC_CAST(nsNavHistory*, aHistory);
mozIStorageConnection *conn = history->GetStorageConnection();
NS_ENSURE_TRUE(conn, NS_ERROR_NOT_INITIALIZED);
mozStorageTransaction transaction(conn, PR_FALSE);
reader.EnumerateRows(AddToHistoryCB, &data);