Chromium Code Reviews| Index: remoting/android/java/src/org/chromium/chromoting/HostListLoader.java |
| diff --git a/remoting/android/java/src/org/chromium/chromoting/HostListLoader.java b/remoting/android/java/src/org/chromium/chromoting/HostListLoader.java |
| index bfcdfd8adac22dac6e0870222cb4a277ae9d73e8..8107471dd652d3306f10ddc40869457399f2a5bd 100644 |
| --- a/remoting/android/java/src/org/chromium/chromoting/HostListLoader.java |
| +++ b/remoting/android/java/src/org/chromium/chromoting/HostListLoader.java |
| @@ -42,7 +42,7 @@ public class HostListLoader { |
| /** Path from which to download a user's host list JSON object. */ |
| private static final String HOST_LIST_PATH = |
| - "https://www.googleapis.com/chromoting/v1/@me/hosts?key="; |
| + "https://www.googleapis.com/chromoting/v1/@me/hosts"; |
| /** Callback handler to be used for network operations. */ |
| private Handler mNetworkThread; |
| @@ -86,8 +86,7 @@ public class HostListLoader { |
| HttpURLConnection link = null; |
| String response = null; |
| try { |
| - link = (HttpURLConnection) |
| - new URL(HOST_LIST_PATH + JniInterface.nativeGetApiKey()).openConnection(); |
| + link = (HttpURLConnection) new URL(HOST_LIST_PATH).openConnection(); |
| link.addRequestProperty("client_id", JniInterface.nativeGetClientId()); |
|
Lambros
2014/10/06 23:03:21
Maybe we should remove these lines as well (client
rmsousa
2014/10/06 23:13:25
Yes, we should, I don't think they're currently do
Lambros
2014/10/07 00:11:01
Done.
|
| link.addRequestProperty("client_secret", JniInterface.nativeGetClientSecret()); |
| link.setRequestProperty("Authorization", "OAuth " + authToken); |