| Index: remoting/webapp/crd/js/crd_main.js
|
| diff --git a/remoting/webapp/crd/js/crd_main.js b/remoting/webapp/crd/js/crd_main.js
|
| index 9b57b2335a3e3940ce0ca4f78a4b5c417acd9dec..754b97f46144567422154e9d687600a5cb180898 100644
|
| --- a/remoting/webapp/crd/js/crd_main.js
|
| +++ b/remoting/webapp/crd/js/crd_main.js
|
| @@ -19,16 +19,16 @@ remoting.initHostlist_ = function() {
|
| document.getElementById('host-list-loading-indicator'));
|
|
|
| isHostModeSupported_().then(
|
| - /** @param {Boolean} supported */
|
| - function(supported){
|
| - if (supported) {
|
| - var noShare = document.getElementById('chrome-os-no-share');
|
| - noShare.parentNode.removeChild(noShare);
|
| - } else {
|
| - var button = document.getElementById('share-button');
|
| - button.disabled = true;
|
| - }
|
| - });
|
| + /** @param {Boolean} supported */
|
| + function(supported) {
|
| + if (supported) {
|
| + var noShare = document.getElementById('unsupported-platform-message');
|
| + noShare.parentNode.removeChild(noShare);
|
| + } else {
|
| + var button = document.getElementById('share-button');
|
| + button.disabled = true;
|
| + }
|
| + });
|
|
|
| /**
|
| * @return {Promise} A promise that resolves to the id of the current
|
| @@ -94,7 +94,7 @@ remoting.initHostlist_ = function() {
|
| * @return {Promise} Resolves to true if Host mode is supported.
|
| */
|
| function isHostModeSupported_() {
|
| - if (!remoting.platformIsChromeOS()) {
|
| + if (remoting.HostInstaller.canInstall()) {
|
| return Promise.resolve(true);
|
| }
|
| // Sharing on Chrome OS is currently behind a flag.
|
|
|