Index: remoting/webapp/crd/js/host_list_api.js |
diff --git a/remoting/webapp/crd/js/host_list_api.js b/remoting/webapp/crd/js/host_list_api.js |
index 9387fb0611df8a94c5878cbcede1ffdc890b13ef..00ac4a24b067a4d9e1b59d3d2f38b81fab64505c 100644 |
--- a/remoting/webapp/crd/js/host_list_api.js |
+++ b/remoting/webapp/crd/js/host_list_api.js |
@@ -80,9 +80,13 @@ var instance = null; |
*/ |
remoting.HostListApi.getInstance = function() { |
if (instance == null) { |
- instance = remoting.settings.USE_GCD ? |
- new remoting.GcdHostListApi() : |
- new remoting.LegacyHostListApi(); |
+ if (remoting.settings.USE_GCD) { |
+ var gcdInstance = new remoting.GcdHostListApi(); |
+ var legacyInstance = new remoting.LegacyHostListApi(); |
+ instance = new remoting.CombinedHostListApi(legacyInstance, gcdInstance); |
+ } else { |
+ instance = new remoting.LegacyHostListApi(); |
+ } |
} |
return instance; |
}; |