Fixing repeated 'skin' provider types

This commit is contained in:
dveditz%netscape.com 2000-05-05 03:44:58 +00:00
Родитель 7369ee7d78
Коммит 3982325c1b
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -975,7 +975,7 @@ NS_IMETHODIMP nsChromeRegistry::SelectSkin(const PRUnichar* aSkin,
NS_IMETHODIMP nsChromeRegistry::SelectLocale(const PRUnichar* aLocale,
PRBool aUseProfile)
{
return SetProvider("skin", mSelectedSkin, aLocale, aUseProfile, PR_TRUE);
return SetProvider("locale", mSelectedSkin, aLocale, aUseProfile, PR_TRUE);
}
NS_IMETHODIMP nsChromeRegistry::DeselectSkin(const PRUnichar* aSkin,
@ -987,7 +987,7 @@ NS_IMETHODIMP nsChromeRegistry::DeselectSkin(const PRUnichar* aSkin,
NS_IMETHODIMP nsChromeRegistry::DeselectLocale(const PRUnichar* aLocale,
PRBool aUseProfile)
{
return SetProvider("skin", mSelectedSkin, aLocale, aUseProfile, PR_FALSE);
return SetProvider("locale", mSelectedSkin, aLocale, aUseProfile, PR_FALSE);
}
NS_IMETHODIMP nsChromeRegistry::SetProvider(const nsCAutoString& aProvider,
@ -1153,7 +1153,7 @@ NS_IMETHODIMP nsChromeRegistry::DeselectLocaleForPackage(const PRUnichar *aLocal
const PRUnichar *aPackageName,
PRBool aUseProfile)
{
nsCAutoString provider("skin");
nsCAutoString provider("locale");
return SelectProviderForPackage(provider, aLocale, aPackageName, mSelectedLocale, aUseProfile, PR_FALSE);
}

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

@ -975,7 +975,7 @@ NS_IMETHODIMP nsChromeRegistry::SelectSkin(const PRUnichar* aSkin,
NS_IMETHODIMP nsChromeRegistry::SelectLocale(const PRUnichar* aLocale,
PRBool aUseProfile)
{
return SetProvider("skin", mSelectedSkin, aLocale, aUseProfile, PR_TRUE);
return SetProvider("locale", mSelectedSkin, aLocale, aUseProfile, PR_TRUE);
}
NS_IMETHODIMP nsChromeRegistry::DeselectSkin(const PRUnichar* aSkin,
@ -987,7 +987,7 @@ NS_IMETHODIMP nsChromeRegistry::DeselectSkin(const PRUnichar* aSkin,
NS_IMETHODIMP nsChromeRegistry::DeselectLocale(const PRUnichar* aLocale,
PRBool aUseProfile)
{
return SetProvider("skin", mSelectedSkin, aLocale, aUseProfile, PR_FALSE);
return SetProvider("locale", mSelectedSkin, aLocale, aUseProfile, PR_FALSE);
}
NS_IMETHODIMP nsChromeRegistry::SetProvider(const nsCAutoString& aProvider,
@ -1153,7 +1153,7 @@ NS_IMETHODIMP nsChromeRegistry::DeselectLocaleForPackage(const PRUnichar *aLocal
const PRUnichar *aPackageName,
PRBool aUseProfile)
{
nsCAutoString provider("skin");
nsCAutoString provider("locale");
return SelectProviderForPackage(provider, aLocale, aPackageName, mSelectedLocale, aUseProfile, PR_FALSE);
}