зеркало из https://github.com/mozilla/gecko-dev.git
bug 250255 : get rid of a redundant check of 'registry type' in GetSourceHomePageURL (addressing reviewer's comment I missed in the previous check-in)
This commit is contained in:
Родитель
a71cd28580
Коммит
e4b2f13ece
|
@ -517,10 +517,7 @@ nsIEProfileMigrator::GetSourceHomePageURL(nsACString& aResult)
|
|||
// read registry data
|
||||
NS_NAMED_LITERAL_STRING(homeURLValName, "Start Page");
|
||||
nsAutoString homeURLVal;
|
||||
PRUint32 type;
|
||||
if (NS_SUCCEEDED(regKey->GetValueType(homeURLValName, &type)) &&
|
||||
type == nsIWindowsRegKey::TYPE_STRING &&
|
||||
NS_SUCCEEDED(regKey->ReadStringValue(homeURLValName, homeURLVal))) {
|
||||
if (NS_SUCCEEDED(regKey->ReadStringValue(homeURLValName, homeURLVal))) {
|
||||
// Do we need this round-about way to get |homePageURL|?
|
||||
// Perhaps, we do to have the form of URL under our control
|
||||
// (cf. network.standard-url.escape-utf8)
|
||||
|
|
Загрузка…
Ссылка в новой задаче