Fixing Firebird build bustage after timeless' fishy checkin to bug 58613.

git-svn-id: svn://10.0.0.236/trunk@144045 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ben%netscape.com
2003-06-23 00:56:38 +00:00
parent 5c278e8480
commit 0ea298aa91
3 changed files with 3 additions and 14 deletions

View File

@@ -81,7 +81,7 @@ interface nsIBrowserHistory : nsISupports
* lastPageVisited
* the most recently visited page
*/
readonly attribute string lastPageVisited;
attribute string lastPageVisited;
/**

View File

@@ -107,7 +107,6 @@ nsIPrefBranch* nsGlobalHistory::gPrefBranch = nsnull;
#define PREF_BRANCH_BASE "browser."
#define PREF_BROWSER_HISTORY_EXPIRE_DAYS "history_expire_days"
#define PREF_BROWSER_STARTUP_PAGE "startup.page"
#define PREF_AUTOCOMPLETE_ONLY_TYPED "urlbar.matchOnlyTyped"
#define PREF_AUTOCOMPLETE_ENABLED "urlbar.autocomplete.enabled"
@@ -615,15 +614,6 @@ nsGlobalHistory::AddPage(const char *aURL)
nsresult rv = AddPageToDatabase(aURL, GetNow());
NS_ENSURE_SUCCESS(rv, rv);
if (gPrefBranch) {
PRInt32 choice = 0;
gPrefBranch->GetIntPref(PREF_BROWSER_STARTUP_PAGE, &choice);
if (choice == 2) {
rv = SaveLastPageVisited(aURL);
NS_ENSURE_SUCCESS(rv, rv);
}
}
return NS_OK;
}
@@ -1190,8 +1180,8 @@ nsGlobalHistory::IsVisited(const char *aURL, PRBool *_retval)
return NS_OK;
}
nsresult
nsGlobalHistory::SaveLastPageVisited(const char *aURL)
NS_IMETHODIMP
nsGlobalHistory::SetLastPageVisited(const char *aURL)
{
NS_ENSURE_TRUE(aURL, NS_ERROR_FAILURE);
NS_ENSURE_STATE(mMetaRow);

View File

@@ -332,7 +332,6 @@ protected:
// misc unrelated stuff
//
nsCOMPtr<nsIStringBundle> mBundle;
nsresult SaveLastPageVisited(const char *);
// pseudo-constants. although the global history really is a
// singleton, we'll use this metaphor to be consistent.