Bug 1242436 - default value of ok = true in order to check the return of SendPush and SendPushSubscriptionChange. r=kitcambridge

This commit is contained in:
Bogdan Postelnicu 2016-01-25 14:47:06 +02:00
parent 442cc764d3
commit 03fdbe102e

View File

@ -131,7 +131,7 @@ PushNotifier::NotifyPushWorkers(const nsACString& aScope,
// Otherwise, we're in the parent and e10s is enabled. Broadcast the event
// to all content processes.
bool ok = false;
bool ok = true;
nsTArray<ContentParent*> contentActors;
ContentParent::GetAll(contentActors);
for (uint32_t i = 0; i < contentActors.Length(); ++i) {
@ -169,7 +169,7 @@ PushNotifier::NotifySubscriptionChangeWorkers(const nsACString& aScope,
}
// Parent process, e10s enabled.
bool ok = false;
bool ok = true;
nsTArray<ContentParent*> contentActors;
ContentParent::GetAll(contentActors);
for (uint32_t i = 0; i < contentActors.Length(); ++i) {