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

Unified Diff: webrtc/p2p/client/basicportallocator.cc

Issue 2959993002: Handle the PROTO_TSL when getting the protocol priority. (Closed)
Patch Set: Update the comments. Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/client/basicportallocator.cc
diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc
index 549d013a255bb54b2a42c472dcfe1d1612413c26..499bda13115d819a0a3ce008a0f417b53ca59995 100644
--- a/webrtc/p2p/client/basicportallocator.cc
+++ b/webrtc/p2p/client/basicportallocator.cc
@@ -47,10 +47,11 @@ const int PHASE_SSLTCP = 3;
const int kNumPhases = 4;
-// Gets protocol priority: UDP > TCP > SSLTCP.
+// Gets protocol priority: UDP == TLS > TCP > SSLTCP.
int GetProtocolPriority(cricket::ProtocolType protocol) {
switch (protocol) {
case cricket::PROTO_UDP:
+ case cricket::PROTO_TLS:
honghaiz3 2017/06/27 20:56:30 Maybe consider PROTO_UDP to be 3?
return 2;
case cricket::PROTO_TCP:
return 1;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698