Backing out nisheeth. The orange all over (leak/bloat tests, ports) is his.

a=drivers@mozilla.org speaking through the oracle of blizzard
This commit is contained in:
bzbarsky%mit.edu 2007-09-12 17:50:32 +00:00
Родитель 7cf4c3a748
Коммит 46613a569e
2 изменённых файлов: 0 добавлений и 40 удалений

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

@ -80,15 +80,6 @@ interface nsIBookmarksService : nsISupports
wstring getLastCharset(in string aURI);
void importSystemBookmarks(in nsIRDFResource aParentFolder);
/**
* Get the time when a bookmark was added
*
* @param aBookmarkURL The url of the bookmark
* @param aAddTime The time when aBookmarkURL was added to the bookmarks.
*
*/
void getAddTime(in string aBookmarkURL, out long long aAddTime);
};
%{C++

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

@ -3030,37 +3030,6 @@ nsBookmarksService::RemoveBookmarkIcon(const char *aURL, const PRUnichar *iconUR
}
NS_IMETHODIMP
nsBookmarksService::GetAddTime(const char *aBookmarkURL, PRInt64* aAddTime)
{
nsCOMPtr<nsIRDFResource> bookmark;
nsresult rv;
if (NS_SUCCEEDED(rv = gRDF->GetResource(aBookmarkURL, getter_AddRefs(bookmark) )))
{
// Note: always use mInner!! Otherwise, could get into an infinite loop
// due to Assert/Change calling UpdateBookmarkLastModifiedDate()
nsCOMPtr<nsIRDFNode> nodeType;
GetSynthesizedType(bookmark, getter_AddRefs(nodeType));
if (nodeType == kNC_Bookmark)
{
nsCOMPtr<nsIRDFNode> node;
rv = mInner->GetTarget(bookmark, kNC_BookmarkAddDate, PR_TRUE,
getter_AddRefs(node));
if (rv != NS_RDF_NO_VALUE)
{
nsCOMPtr<nsIRDFDate> addDate = do_QueryInterface(node);
if (addDate)
{
rv = addDate->GetValue(aAddTime);
}
}
}
}
return rv;
}
NS_IMETHODIMP
nsBookmarksService::UpdateLastVisitedDate(const char *aURL, const PRUnichar *aCharset)
{