Bug 948774: Followup to tweak an assertion. r=me

This commit is contained in:
Kyle Huey 2014-01-14 21:17:34 -08:00
Родитель 8a54a59eba
Коммит e5c413cf0c
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -1242,10 +1242,12 @@ ContentParent::ContentParent(mozIApplication* aApp,
{
InitializeMembers(); // Perform common initialization.
// No more than one of !!aApp, aIsForBrowser, aIsForPreallocated, and
// aIsNuwaProcess should be true.
MOZ_ASSERT(!!aApp + aIsForBrowser + aIsForPreallocated + aIsNuwaProcess <=
1);
// No more than one of !!aApp, aIsForBrowser, aIsForPreallocated should be
// true.
MOZ_ASSERT(!!aApp + aIsForBrowser + aIsForPreallocated <= 1);
// Only the preallocated process uses Nuwa.
MOZ_ASSERT_IF(aIsNuwaProcess, aIsForPreallocated);
// Insert ourselves into the global linked list of ContentParent objects.
if (!sContentParents) {