diff --git a/mozilla/browser/base/content/sanitize.js b/mozilla/browser/base/content/sanitize.js index 31026c11423..57b19740454 100644 --- a/mozilla/browser/base/content/sanitize.js +++ b/mozilla/browser/base/content/sanitize.js @@ -165,14 +165,14 @@ Sanitizer.prototype = { } var formHistory = Components.classes["@mozilla.org/satchel/form-history;1"] - .getService(Components.interfaces.nsIFormHistory); + .getService(Components.interfaces.nsIFormHistory2); formHistory.removeAllEntries(); }, get canClear() { var formHistory = Components.classes["@mozilla.org/satchel/form-history;1"] - .getService(Components.interfaces.nsIFormHistory); + .getService(Components.interfaces.nsIFormHistory2); return formHistory.hasEntries; } }, diff --git a/mozilla/browser/components/migration/src/nsIEProfileMigrator.cpp b/mozilla/browser/components/migration/src/nsIEProfileMigrator.cpp index 567f7f7d978..b5912c67e87 100644 --- a/mozilla/browser/components/migration/src/nsIEProfileMigrator.cpp +++ b/mozilla/browser/components/migration/src/nsIEProfileMigrator.cpp @@ -1010,7 +1010,7 @@ nsIEProfileMigrator::GetUserNameAndPass(unsigned char* data, unsigned long len, // fieldName3:StringData value1\0value2\0value3\0 // // Walk each non-URI prefixed key in IE's PStore section, split the value provided -// into chunks (\0 delimited) and use nsIFormHistory's |addEntry| method to add +// into chunks (\0 delimited) and use nsIFormHistory2's |addEntry| method to add // an entry for the fieldName prefix and each value. // // "Quite Easily Done". ;-) @@ -1066,7 +1066,7 @@ nsIEProfileMigrator::CopyFormData(PRBool aReplace) nsresult nsIEProfileMigrator::AddDataToFormHistory(const nsAString& aKey, PRUnichar* aData, unsigned long aCount) { - nsCOMPtr formHistory(do_GetService("@mozilla.org/satchel/form-history;1")); + nsCOMPtr formHistory(do_GetService("@mozilla.org/satchel/form-history;1")); if (!formHistory) return NS_ERROR_OUT_OF_MEMORY; diff --git a/mozilla/browser/components/migration/src/nsSafariProfileMigrator.cpp b/mozilla/browser/components/migration/src/nsSafariProfileMigrator.cpp index 4066adfb702..fdb31d813f2 100644 --- a/mozilla/browser/components/migration/src/nsSafariProfileMigrator.cpp +++ b/mozilla/browser/components/migration/src/nsSafariProfileMigrator.cpp @@ -1107,7 +1107,7 @@ nsSafariProfileMigrator::CopyFormData(PRBool aReplace) Boolean hasSearchStrings = ::CFDictionaryContainsKey(safariPrefs, CFSTR("RecentSearchStrings")); if (hasSearchStrings) { - nsCOMPtr formHistory(do_GetService("@mozilla.org/satchel/form-history;1")); + nsCOMPtr formHistory(do_GetService("@mozilla.org/satchel/form-history;1")); if (formHistory) { CFArrayRef strings = (CFArrayRef)::CFDictionaryGetValue(safariPrefs, CFSTR("RecentSearchStrings")); diff --git a/mozilla/browser/components/search/content/search.xml b/mozilla/browser/components/search/content/search.xml index 959825aefd6..78692717bed 100644 --- a/mozilla/browser/components/search/content/search.xml +++ b/mozilla/browser/components/search/content/search.xml @@ -308,7 +308,7 @@ fh = do_GetService(NS_FORMHISTORY_CONTRACTID); + nsCOMPtr fh = do_GetService(NS_FORMHISTORY_CONTRACTID); } return gFormHistory; } diff --git a/mozilla/toolkit/components/satchel/src/nsStorageFormHistory.cpp b/mozilla/toolkit/components/satchel/src/nsStorageFormHistory.cpp index d27db8b642f..c2daca8c0a0 100644 --- a/mozilla/toolkit/components/satchel/src/nsStorageFormHistory.cpp +++ b/mozilla/toolkit/components/satchel/src/nsStorageFormHistory.cpp @@ -133,7 +133,7 @@ nsFormHistoryResult::RemoveValueAt(PRInt32 aRowIndex, PRBool aRemoveFromDB) #define PREF_FORMFILL_ENABLE "enable" NS_INTERFACE_MAP_BEGIN(nsFormHistory) - NS_INTERFACE_MAP_ENTRY(nsIFormHistory) + NS_INTERFACE_MAP_ENTRY(nsIFormHistory2) NS_INTERFACE_MAP_ENTRY(nsIFormHistoryPrivate) NS_INTERFACE_MAP_ENTRY(nsIObserver) NS_INTERFACE_MAP_ENTRY(nsIFormSubmitObserver) @@ -197,7 +197,7 @@ nsFormHistory::FormHistoryEnabled() //////////////////////////////////////////////////////////////////////// -//// nsIFormHistory +//// nsIFormHistory2 NS_IMETHODIMP nsFormHistory::GetHasEntries(PRBool *aHasEntries) @@ -512,7 +512,7 @@ static const char * const gColumnNames[] = { struct FormHistoryImportClosure { - FormHistoryImportClosure(nsMorkReader *aReader, nsIFormHistory *aFormHistory) + FormHistoryImportClosure(nsMorkReader *aReader, nsIFormHistory2 *aFormHistory) : reader(aReader), formHistory(aFormHistory), byteOrderColumn(-1), swapBytes(PR_FALSE) { @@ -523,7 +523,7 @@ struct FormHistoryImportClosure // Back pointers to the reader and history we're operating on const nsMorkReader *reader; - nsIFormHistory *formHistory; + nsIFormHistory2 *formHistory; // Indexes of the columns that we care about PRInt32 columnIndexes[kColumnCount]; @@ -604,7 +604,7 @@ NS_IMPL_ISUPPORTS1(nsFormHistoryImporter, nsIFormHistoryImporter) NS_IMETHODIMP nsFormHistoryImporter::ImportFormHistory(nsIFile *aFile, - nsIFormHistory *aFormHistory) + nsIFormHistory2 *aFormHistory) { // Check that the file exists before we try to open it PRBool exists;