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

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

Issue 2959993002: Handle the PROTO_TSL when getting the protocol priority. (Closed)
Patch Set: Change the priority. 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..2e5bc0d06c90cca9c4d1dc80f3f5e4d9f2d2ae56 100644
--- a/webrtc/p2p/client/basicportallocator.cc
+++ b/webrtc/p2p/client/basicportallocator.cc
@@ -47,7 +47,7 @@ const int PHASE_SSLTCP = 3;
const int kNumPhases = 4;
-// Gets protocol priority: UDP > TCP > SSLTCP.
+// Gets protocol priority: UDP > TCP > SSLTCP == TLS.
int GetProtocolPriority(cricket::ProtocolType protocol) {
switch (protocol) {
case cricket::PROTO_UDP:
@@ -55,6 +55,7 @@ int GetProtocolPriority(cricket::ProtocolType protocol) {
case cricket::PROTO_TCP:
return 1;
case cricket::PROTO_SSLTCP:
+ case cricket::PROTO_TLS:
return 0;
default:
RTC_NOTREACHED();
« 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