Bug 1079451: Don't log unnecessary warnings from chrome registration. r=bsmedberg

This commit is contained in:
Dave Townsend 2014-10-15 15:02:42 -07:00
Родитель bbb3ffb302
Коммит 36116956c0
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -766,7 +766,7 @@ ParseManifest(NSLocationType aType, FileLocation& aFile, char* aBuf,
(nsChromeRegistry::gChromeRegistry->*(directive->regfunc))(
chromecx, line, argv, platform, contentAccessible);
} else if (directive->mgrfunc && (directive->ischrome || !aChromeOnly)) {
} else if (directive->ischrome || !aChromeOnly) {
if (directive->isContract) {
CachedDirective* cd = contracts.AppendElement();
cd->lineno = line;
@ -776,8 +776,6 @@ ParseManifest(NSLocationType aType, FileLocation& aFile, char* aBuf,
(nsComponentManagerImpl::gComponentManager->*(directive->mgrfunc))(
mgrcx, line, argv);
}
} else {
LogMessageWithContext(aFile, line, "No valid manifest directive.");
}
}