mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
make ReadBookmarks() part of the nsIBookmarksService interface. I need this so I can call it from the profile code, so that after migration, the user has their 4.x bookmarks. one bug remains, is that when you call ReadBookmarks() more then once it should re-set the bookmarks, instead of adding to it.
This commit is contained in:
parent
977c45c903
commit
78f4b21b83
@ -27,6 +27,7 @@
|
||||
[scriptable, uuid(a82e9300-e4af-11d2-8fdf-0008c70adc7b)]
|
||||
interface nsIBookmarksService : nsISupports
|
||||
{
|
||||
void ReadBookmarks();
|
||||
void AddBookmark(in string aURI, in wstring aTitle);
|
||||
void UpdateBookmarkLastVisitedDate(in string aURL);
|
||||
string FindShortcut(in wstring aName);
|
||||
|
@ -1283,7 +1283,6 @@ nsresult ExamineBookmarkSchedule(nsIRDFResource *theBookmark, PRBool & examineFl
|
||||
nsresult GetBookmarkToPing(nsIRDFResource **theBookmark);
|
||||
|
||||
nsresult GetBookmarksFile(nsFileSpec* aResult);
|
||||
nsresult ReadBookmarks();
|
||||
nsresult WriteBookmarks(nsIRDFDataSource *ds, nsIRDFResource *root);
|
||||
nsresult WriteBookmarksContainer(nsIRDFDataSource *ds, nsOutputFileStream strm, nsIRDFResource *container, PRInt32 level);
|
||||
nsresult GetTextForNode(nsIRDFNode* aNode, nsString& aResult);
|
||||
@ -3139,7 +3138,7 @@ nsBookmarksService::GetBookmarksFile(nsFileSpec* aResult)
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsresult
|
||||
NS_IMETHODIMP
|
||||
nsBookmarksService::ReadBookmarks()
|
||||
{
|
||||
nsresult rv;
|
||||
|
Loading…
Reference in New Issue
Block a user