Bug 1250387 - Kill GckoConnectivityReceiver.java and improve GeckoNetworkManager.java r=grisha

This commit is contained in:
Shatur
2016-04-19 06:31:17 +05:30
parent ebfcb22bfe
commit 723ff2e162
6 changed files with 116 additions and 111 deletions

View File

@@ -832,6 +832,12 @@ nsAppShell::LegacyGeckoEvent::Run()
hal::NotifyNetworkChange(hal::NetworkInformation(curEvent->ConnectionType(),
curEvent->IsWifi(),
curEvent->DHCPGateway()));
nsCOMPtr<nsIObserverService> os = mozilla::services::GetObserverService();
if (os) {
os->NotifyObservers(nullptr,
NS_NETWORK_LINK_TYPE_TOPIC,
nsString(curEvent->Characters()).get());
}
break;
}