From f6d9a3cf4305864aef6605102cf2decdf8f62d95 Mon Sep 17 00:00:00 2001 From: "dietrich%mozilla.com" Date: Tue, 3 Apr 2007 18:11:03 +0000 Subject: [PATCH] Bug 376374 places bookmarks backups should be only for --enable-places-bookmarks builds (r=sspitzer) --- toolkit/components/places/src/nsNavBookmarks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolkit/components/places/src/nsNavBookmarks.cpp b/toolkit/components/places/src/nsNavBookmarks.cpp index 7699ccb27d2..943d102419c 100644 --- a/toolkit/components/places/src/nsNavBookmarks.cpp +++ b/toolkit/components/places/src/nsNavBookmarks.cpp @@ -2286,6 +2286,7 @@ nsNavBookmarks::RemoveObserver(nsINavBookmarkObserver *aObserver) nsresult nsNavBookmarks::OnQuit() { +#ifdef MOZ_PLACES_BOOKMARKS // get bookmarks file nsCOMPtr bookmarksFile; nsresult rv = NS_GetSpecialDirectory(NS_APP_BOOKMARKS_50_FILE, @@ -2321,6 +2322,7 @@ nsNavBookmarks::OnQuit() rv = ArchiveBookmarksFile(numberOfBackups, PR_FALSE); NS_ENSURE_SUCCESS(rv, rv); } +#endif return NS_OK; }