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

Unified Diff: remoting/protocol/jingle_session.cc

Issue 1987163002: Add DOMAIN_MISMATCH message end to end (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep the order of ChromotingEvent list Created 4 years, 7 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
Index: remoting/protocol/jingle_session.cc
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
index ba523000e7cf9fcf1320d295dec8f71e0dc44e3f..f6a84bf213283b740fbf1972fa5ceafd8d30fbfb 100644
--- a/remoting/protocol/jingle_session.cc
+++ b/remoting/protocol/jingle_session.cc
@@ -54,6 +54,8 @@ ErrorCode AuthRejectionReasonToErrorCode(
return AUTHENTICATION_FAILED;
case Authenticator::PROTOCOL_ERROR:
return INCOMPATIBLE_PROTOCOL;
+ case Authenticator::DOMAIN_MISMATCH:
+ return DOMAIN_MISMATCH;
}
NOTREACHED();
return UNKNOWN_ERROR;
@@ -245,6 +247,9 @@ void JingleSession::Close(protocol::ErrorCode error) {
case AUTHENTICATION_FAILED:
reason = JingleMessage::DECLINE;
break;
+ case DOMAIN_MISMATCH:
+ reason = JingleMessage::DOMAIN_MISMATCH;
+ break;
case INCOMPATIBLE_PROTOCOL:
reason = JingleMessage::INCOMPATIBLE_PARAMETERS;
break;
@@ -484,6 +489,9 @@ void JingleSession::OnTerminate(const JingleMessage& message,
case JingleMessage::DECLINE:
error_ = AUTHENTICATION_FAILED;
break;
+ case JingleMessage::DOMAIN_MISMATCH:
+ error_ = DOMAIN_MISMATCH;
+ break;
case JingleMessage::CANCEL:
error_ = HOST_OVERLOAD;
break;

Powered by Google App Engine
This is Rietveld 408576698