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

Unified Diff: remoting/webapp/crd/js/gcd_host_list_api.js

Issue 1217643002: Added HostListApl implementation to connect to legacy directory and GCD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcd-e2e
Patch Set: Created 5 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
Index: remoting/webapp/crd/js/gcd_host_list_api.js
diff --git a/remoting/webapp/crd/js/gcd_host_list_api.js b/remoting/webapp/crd/js/gcd_host_list_api.js
index a904c9dce511d61c20df792183bb485d2475b36e..f8ad24a1f870fff535b6ef8f06377851b3419f3d 100644
--- a/remoting/webapp/crd/js/gcd_host_list_api.js
+++ b/remoting/webapp/crd/js/gcd_host_list_api.js
@@ -126,6 +126,11 @@ remoting.GcdHostListApi.prototype.getSupportHost = function(supportId) {
return Promise.reject(remoting.Error.unexpected());
};
+/** @override */
+remoting.GcdHostListApi.prototype.getHostIdFromConfig = function(config) {
+ return base.getStringAttr(config, 'gcd_device_id');
+};
+
/**
* Tag for distinguishing Chromoting hosts from other devices stored
* in GCD.

Powered by Google App Engine
This is Rietveld 408576698