Bug 37275, Changing value of all progids, and changing everywhere a progid

is mentioned to mention a contractid, including in identifiers.

r=warren
This commit is contained in:
rayw%netscape.com 2007-09-06 21:57:44 +00:00
Родитель bc2f199afc
Коммит 9f24d67d51
2 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -89,14 +89,14 @@ interface nsIInternetSearchContext : nsISupports
#define NS_ILOCALSEARCHDATASOURCE_IID \
{ 0x1222e6f0, 0xa5e3, 0x11d2, { 0x8b, 0x7c, 0x00, 0x80, 0x5f, 0x8a, 0x7d, 0xb6 } }
#define NS_LOCALSEARCH_SERVICE_PROGID \
"component://netscape/browser/localsearch-service"
#define NS_LOCALSEARCH_DATASOURCE_PROGID \
"component://netscape/rdf/datasource?name=localsearch"
#define NS_LOCALSEARCH_SERVICE_CONTRACTID \
"@mozilla.org/browser/localsearch-service;1"
#define NS_LOCALSEARCH_DATASOURCE_CONTRACTID \
"@mozilla.org/rdf/datasource;1?name=localsearch"
#define NS_INTERNETSEARCH_SERVICE_PROGID \
"component://netscape/browser/internetsearch-service"
#define NS_INTERNETSEARCH_DATASOURCE_PROGID \
"component://netscape/rdf/datasource?name=internetsearch"
#define NS_INTERNETSEARCH_SERVICE_CONTRACTID \
"@mozilla.org/browser/internetsearch-service;1"
#define NS_INTERNETSEARCH_DATASOURCE_CONTRACTID \
"@mozilla.org/rdf/datasource;1?name=internetsearch"
%}

Просмотреть файл

@ -658,7 +658,7 @@ else
nsresult rv;
mTimer = do_CreateInstance("component://netscape/timer", &rv);
mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
if (NS_FAILED(rv) || (!mTimer)) return;
mTimer->Init(InternetSearchDataSource::FireTimer, search,
SEARCH_UPDATE_TIMEOUT, NS_PRIORITY_LOWEST, NS_TYPE_REPEATING_SLACK);
@ -858,7 +858,7 @@ InternetSearchDataSource::Init()
if (!mTimer)
{
busySchedule = PR_FALSE;
mTimer = do_CreateInstance("component://netscape/timer", &rv);
mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
if (mTimer)
{
mTimer->Init(InternetSearchDataSource::FireTimer, this,
@ -2589,7 +2589,7 @@ InternetSearchDataSource::FindInternetSearchResults(const char *url, PRBool *sea
// apply charset conversion to the search text
if (!mQueryEncodingStr.IsEmpty())
{
nsCOMPtr<nsITextToSubURI> textToSubURI = do_GetService(NS_ITEXTTOSUBURI_PROGID, &rv);
nsCOMPtr<nsITextToSubURI> textToSubURI = do_GetService(NS_ITEXTTOSUBURI_CONTRACTID, &rv);
if (NS_SUCCEEDED(rv))
{
nsCAutoString escapedSearchText;