зеркало из https://github.com/mozilla/gecko-dev.git
Updating call sites of bookmarks-service methods to use new method names.
r=rjc, sr=hyatt
This commit is contained in:
Родитель
6b807340cb
Коммит
5a5bbe404b
|
@ -71,7 +71,7 @@ function saveSearch()
|
|||
|
||||
var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService();
|
||||
if (bmks) bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);
|
||||
if (bmks) bmks.AddBookmark(searchURL, searchTitle, bmks.BOOKMARK_FIND_TYPE, null);
|
||||
if (bmks) bmks.addBookmarkImmediately(searchURL, searchTitle, bmks.BOOKMARK_FIND_TYPE, null);
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ function saveSearch()
|
|||
if (bmks) bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);
|
||||
|
||||
var searchTitle = "Search: '" + gText + "' using " + gSites;
|
||||
if (bmks) bmks.AddBookmark(searchURL, searchTitle, bmks.BOOKMARK_SEARCH_TYPE, null);
|
||||
if (bmks) bmks.addBookmarkImmediately(searchURL, searchTitle, bmks.BOOKMARK_SEARCH_TYPE, null);
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
|
|
@ -975,7 +975,7 @@ function saveSearch()
|
|||
"searchTitle", [lastSearchText], 1);
|
||||
|
||||
var bmks = Components.classes[BMARKS_CONTRACTID].getService(nsIBookmarksService);
|
||||
bmks.AddBookmark(lastSearchURI, searchTitle, bmks.BOOKMARK_SEARCH_TYPE, null);
|
||||
bmks.addBookmarkImmediately(lastSearchURI, searchTitle, bmks.BOOKMARK_SEARCH_TYPE, null);
|
||||
}
|
||||
|
||||
function doCustomize()
|
||||
|
|
|
@ -1860,7 +1860,7 @@ InternetSearchDataSource::addToBookmarks(nsIRDFResource *src)
|
|||
char *uri = getSearchURI(src);
|
||||
if (uri)
|
||||
{
|
||||
rv = bookmarks->AddBookmark(uri, name, nsIBookmarksService::BOOKMARK_SEARCH_TYPE, nsnull);
|
||||
rv = bookmarks->AddBookmarkImmediately(uri, name, nsIBookmarksService::BOOKMARK_SEARCH_TYPE, nsnull);
|
||||
Recycle(uri);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче