Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: webrtc/sdk/android/api/org/webrtc/NetworkMonitorAutoDetect.java

Issue 2668963002: Remove Assert lint suppression. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools-webrtc/android/suppressions.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/api/org/webrtc/NetworkMonitorAutoDetect.java
diff --git a/webrtc/sdk/android/api/org/webrtc/NetworkMonitorAutoDetect.java b/webrtc/sdk/android/api/org/webrtc/NetworkMonitorAutoDetect.java
index 6bd727fd7f26472b5280e0d61f449dce48902e5d..c095485bbef2d6b8a954d163993f5fa70e51e168 100644
--- a/webrtc/sdk/android/api/org/webrtc/NetworkMonitorAutoDetect.java
+++ b/webrtc/sdk/android/api/org/webrtc/NetworkMonitorAutoDetect.java
@@ -263,7 +263,10 @@ public class NetworkMonitorAutoDetect extends BroadcastReceiver {
// ConnectivityManager.getDefaultNetwork() though this
// may give confusing results with VPNs and is only
// available with Android Marshmallow.
- assert defaultNetId == INVALID_NET_ID;
+ if (defaultNetId != INVALID_NET_ID) {
+ throw new RuntimeException(
+ "Multiple connected networks of same type are not supported.");
+ }
defaultNetId = networkToNetId(network);
}
}
« no previous file with comments | « tools-webrtc/android/suppressions.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698