Loading toolkit/components/places/src/nsNavHistory.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -167,6 +167,9 @@ // Amount of items to expire at idle time. #define MAX_EXPIRE_RECORDS_ON_IDLE 200 // Limit the number of items in the history for performance reasons #define EXPIRATION_CAP_VISITS 20000 NS_IMPL_ADDREF(nsNavHistory) NS_IMPL_RELEASE(nsNavHistory) Loading Loading @@ -1388,7 +1391,10 @@ nsNavHistory::LoadPrefs() return NS_OK; mPrefBranch->GetIntPref(PREF_BROWSER_HISTORY_EXPIRE_DAYS, &mExpireDays); mPrefBranch->GetIntPref(PREF_BROWSER_HISTORY_EXPIRE_VISITS, &mExpireVisits); if (NS_FAILED(mPrefBranch->GetIntPref(PREF_BROWSER_HISTORY_EXPIRE_VISITS, &mExpireVisits))) mExpireVisits = EXPIRATION_CAP_VISITS; PRBool oldCompleteOnlyTyped = mAutoCompleteOnlyTyped; mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_ONLY_TYPED, &mAutoCompleteOnlyTyped); Loading Loading
toolkit/components/places/src/nsNavHistory.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -167,6 +167,9 @@ // Amount of items to expire at idle time. #define MAX_EXPIRE_RECORDS_ON_IDLE 200 // Limit the number of items in the history for performance reasons #define EXPIRATION_CAP_VISITS 20000 NS_IMPL_ADDREF(nsNavHistory) NS_IMPL_RELEASE(nsNavHistory) Loading Loading @@ -1388,7 +1391,10 @@ nsNavHistory::LoadPrefs() return NS_OK; mPrefBranch->GetIntPref(PREF_BROWSER_HISTORY_EXPIRE_DAYS, &mExpireDays); mPrefBranch->GetIntPref(PREF_BROWSER_HISTORY_EXPIRE_VISITS, &mExpireVisits); if (NS_FAILED(mPrefBranch->GetIntPref(PREF_BROWSER_HISTORY_EXPIRE_VISITS, &mExpireVisits))) mExpireVisits = EXPIRATION_CAP_VISITS; PRBool oldCompleteOnlyTyped = mAutoCompleteOnlyTyped; mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_ONLY_TYPED, &mAutoCompleteOnlyTyped); Loading