Index: webrtc/api/java/jni/androidnetworkmonitor_jni.cc |
diff --git a/webrtc/api/java/jni/androidnetworkmonitor_jni.cc b/webrtc/api/java/jni/androidnetworkmonitor_jni.cc |
index b7857e2ea96355c26ab1842d402992f3d59ea7d2..a815e27e20cfb97b97790e48fb6ae76d606e67e4 100644 |
--- a/webrtc/api/java/jni/androidnetworkmonitor_jni.cc |
+++ b/webrtc/api/java/jni/androidnetworkmonitor_jni.cc |
@@ -268,8 +268,9 @@ int AndroidNetworkMonitor::BindSocketToNetwork(int socket_fd, |
void AndroidNetworkMonitor::OnNetworkConnected( |
const NetworkInformation& network_info) { |
- worker_thread()->Invoke<void>(rtc::Bind( |
- &AndroidNetworkMonitor::OnNetworkConnected_w, this, network_info)); |
+ worker_thread()->Invoke<void>( |
+ RTC_FROM_HERE, rtc::Bind(&AndroidNetworkMonitor::OnNetworkConnected_w, |
+ this, network_info)); |
// Fire SignalNetworksChanged to update the list of networks. |
OnNetworksChanged(); |
} |
@@ -288,6 +289,7 @@ void AndroidNetworkMonitor::OnNetworkConnected_w( |
void AndroidNetworkMonitor::OnNetworkDisconnected(NetworkHandle handle) { |
LOG(LS_INFO) << "Network disconnected for handle " << handle; |
worker_thread()->Invoke<void>( |
+ RTC_FROM_HERE, |
rtc::Bind(&AndroidNetworkMonitor::OnNetworkDisconnected_w, this, handle)); |
} |