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

Unified Diff: remoting/webapp/base/js/client_session.js

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/webapp/base/js/client_session.js
diff --git a/remoting/webapp/base/js/client_session.js b/remoting/webapp/base/js/client_session.js
index eda42d7891f85299f911988dd9d3cb5ee8bf005b..604b42f3b2be517d99ae924ba3052b1ecf2c6cf1 100644
--- a/remoting/webapp/base/js/client_session.js
+++ b/remoting/webapp/base/js/client_session.js
@@ -182,7 +182,8 @@ remoting.ClientSession.ConnectionError = {
HOST_OVERLOAD: 5,
MAX_SESSION_LENGTH: 6,
HOST_CONFIGURATION_ERROR: 7,
- NACL_PLUGIN_CRASHED: 8
+ NACL_PLUGIN_CRASHED: 8,
+ DOMAIN_MISMATCH: 9
};
/**
@@ -488,6 +489,9 @@ remoting.ClientSession.prototype.onConnectionStatusUpdate =
case remoting.ClientSession.ConnectionError.NACL_PLUGIN_CRASHED:
errorTag = remoting.Error.Tag.NACL_PLUGIN_CRASHED;
break;
+ case remoting.ClientSession.ConnectionError.DOMAIN_MISMATCH:
+ errorTag = remoting.Error.Tag.DOMAIN_MISMATCH;
+ break;
default:
this.error_ = remoting.Error.unexpected();
}

Powered by Google App Engine
This is Rietveld 408576698