зеркало из https://github.com/mozilla/gecko-dev.git
Bug 331985 r=annie.sullivan Don't save favicons when history is disabled.
Original committer: brettw%gmail.com Original revision: 1.97 Original date: 2006/04/12 15:16:10
This commit is contained in:
Родитель
891f840990
Коммит
caef82eee4
|
@ -1444,8 +1444,8 @@ nsNavHistory::SetPageUserTitle(nsIURI* aURI, const nsAString& aUserTitle)
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsNavHistory::MarkPageAsFollowedBookmark(nsIURI* aURI)
|
nsNavHistory::MarkPageAsFollowedBookmark(nsIURI* aURI)
|
||||||
{
|
{
|
||||||
// if history expiration is set to 0 days it is disabled, so don't add
|
// don't add when history is disabled
|
||||||
if (mExpireDays == 0)
|
if (IsHistoryDisabled())
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
nsCAutoString uriString;
|
nsCAutoString uriString;
|
||||||
|
@ -2476,8 +2476,8 @@ nsNavHistory::HidePage(nsIURI *aURI)
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsNavHistory::MarkPageAsTyped(nsIURI *aURI)
|
nsNavHistory::MarkPageAsTyped(nsIURI *aURI)
|
||||||
{
|
{
|
||||||
// if history expiration is set to 0 days it is disabled, so don't add
|
// don't add when history is disabled
|
||||||
if (mExpireDays == 0)
|
if (IsHistoryDisabled())
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
nsCAutoString uriString;
|
nsCAutoString uriString;
|
||||||
|
@ -2506,8 +2506,8 @@ NS_IMETHODIMP
|
||||||
nsNavHistory::AddURI(nsIURI *aURI, PRBool aRedirect,
|
nsNavHistory::AddURI(nsIURI *aURI, PRBool aRedirect,
|
||||||
PRBool aToplevel, nsIURI *aReferrer)
|
PRBool aToplevel, nsIURI *aReferrer)
|
||||||
{
|
{
|
||||||
// if history expiration is set to 0 days it is disabled, so don't add
|
// don't add when history is disabled
|
||||||
if (mExpireDays == 0)
|
if (IsHistoryDisabled())
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
PRTime now = PR_Now();
|
PRTime now = PR_Now();
|
||||||
|
@ -2693,8 +2693,8 @@ nsNavHistory::AddVisitChain(nsIURI* aURI, PRTime aTime,
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsNavHistory::IsVisited(nsIURI *aURI, PRBool *_retval)
|
nsNavHistory::IsVisited(nsIURI *aURI, PRBool *_retval)
|
||||||
{
|
{
|
||||||
// if history expiration is set to 0 days it is disabled, we can optimize
|
// if history is disabled, we can optimize
|
||||||
if (mExpireDays == 0) {
|
if (IsHistoryDisabled()) {
|
||||||
*_retval = PR_FALSE;
|
*_retval = PR_FALSE;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче