зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1589461 - Add network id change event (Android), r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D50429 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
9f3a7ca5a2
Коммит
0eadedd8b8
|
@ -153,7 +153,12 @@ void nsAndroidNetworkLinkService::OnNetworkChanged() {
|
|||
}
|
||||
}
|
||||
|
||||
void nsAndroidNetworkLinkService::OnNetworkIDChanged() {}
|
||||
void nsAndroidNetworkLinkService::OnNetworkIDChanged() {
|
||||
RefPtr<nsAndroidNetworkLinkService> self = this;
|
||||
NS_DispatchToMainThread(NS_NewRunnableFunction(
|
||||
"nsAndroidNetworkLinkService::OnNetworkIDChanged",
|
||||
[self]() { self->SendEvent(NS_NETWORK_LINK_DATA_NETWORKID_CHANGED); }));
|
||||
}
|
||||
|
||||
void nsAndroidNetworkLinkService::OnLinkUp() {
|
||||
RefPtr<nsAndroidNetworkLinkService> self = this;
|
||||
|
|
Загрузка…
Ссылка в новой задаче