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

Unified Diff: remoting/webapp/host_screen.js

Issue 10951020: Show a helpful error message if a host domain policy blocked an attempt to use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review. Created 8 years, 3 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 | « remoting/webapp/_locales/en/messages.json ('k') | remoting/webapp/host_session.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/host_screen.js
diff --git a/remoting/webapp/host_screen.js b/remoting/webapp/host_screen.js
index df36ee63ae42a309940c32e2328232870e4bca02..6dbf5437bd786061b4626df81f561be09dff9085 100644
--- a/remoting/webapp/host_screen.js
+++ b/remoting/webapp/host_screen.js
@@ -121,6 +121,9 @@ function onHostStateChanged_(state) {
} else if (state == remoting.HostSession.State.ERROR) {
console.error('Host plugin state: ERROR');
showShareError_(remoting.Error.UNEXPECTED);
+ } else if (state == remoting.HostSession.State.INVALID_DOMAIN_ERROR) {
+ console.error('Host plugin state: INVALID_DOMAIN_ERROR');
+ showShareError_(remoting.Error.INVALID_HOST_DOMAIN);
} else {
console.error('Unknown state -> ' + state);
}
« no previous file with comments | « remoting/webapp/_locales/en/messages.json ('k') | remoting/webapp/host_session.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698