зеркало из https://github.com/mozilla/pjs.git
Fixing bug 10953. Modifying SetRegString interface to store all required values in the registry. r=gayatrib
This commit is contained in:
Родитель
3d066b2a25
Коммит
63bb203a69
|
@ -94,7 +94,11 @@ interface nsIProfile : nsISupports {
|
|||
readonly attribute nsIFileSpec defaultProfileParentDir;
|
||||
|
||||
void updateRegistry();
|
||||
void setRegString(in wstring profileName, in wstring regString);
|
||||
void setRegStrings(in wstring profileName,
|
||||
in wstring regString,
|
||||
in wstring regName,
|
||||
in wstring regEmail,
|
||||
in wstring regOption);
|
||||
string isRegStringSet(in wstring profileName);
|
||||
|
||||
};
|
||||
|
|
|
@ -1541,7 +1541,11 @@ nsProfile::UpdateRegistry(void)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsProfile::SetRegString(const PRUnichar* profileName, const PRUnichar* regString)
|
||||
nsProfile::SetRegStrings(const PRUnichar* profileName,
|
||||
const PRUnichar* regString,
|
||||
const PRUnichar* regName,
|
||||
const PRUnichar* regEmail,
|
||||
const PRUnichar* regOption)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
|
@ -1552,6 +1556,10 @@ nsProfile::SetRegString(const PRUnichar* profileName, const PRUnichar* regString
|
|||
|
||||
aProfile->NCHavePregInfo = regString;
|
||||
|
||||
if (regName) aProfile->NCProfileName = regName;
|
||||
if (regEmail) aProfile->NCEmailAddress = regEmail;
|
||||
if (regOption) aProfile->NCDeniedService = regOption;
|
||||
|
||||
gProfileDataAccess->SetValue(aProfile);
|
||||
|
||||
delete aProfile;
|
||||
|
|
Загрузка…
Ссылка в новой задаче