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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/HostListLoader.java

Issue 348433002: Verify the host-supplied URL matches the domain's allowed URL patterns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/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 8f3b6bd257fd149c5ab6e75b6915db4374ff94ea..bfcdfd8adac22dac6e0870222cb4a277ae9d73e8 100644
--- a/remoting/android/java/src/org/chromium/chromoting/HostListLoader.java
+++ b/remoting/android/java/src/org/chromium/chromoting/HostListLoader.java
@@ -145,12 +145,7 @@ public class HostListLoader {
// attempt will fail because of the missing keys. The failed attempt will
// trigger reloading of the host-list, by which time the keys will hopefully be
// present, and the retried connection can succeed.
- HostInfo host = new HostInfo(
- hostJson.getString("hostName"),
- hostJson.getString("hostId"),
- hostJson.optString("jabberId"),
- hostJson.optString("publicKey"),
- hostJson.optString("status").equals("ONLINE"));
+ HostInfo host = HostInfo.create(hostJson);
hostList.add(host);
++index;
}

Powered by Google App Engine
This is Rietveld 408576698