• Yuwei Huang's avatar
    [Remoting Host] Make SignalingAddress accept new LCS JID format · a8363245
    Yuwei Huang authored
    We have added the `chromoting_lcs_` prefix to resource of an LCS JID. The
    current code in SignalingAddress doesn't recognize the new format and
    will believe the the new format is of XMPP connection.
    
    This currently doesn't cause any issue after we change the format on
    server and client because:
    * For reply scenario, the connection type will be determined from the
      `from-channel` field instead of the JID format.
    * For outgoing messages, the IQ message format is basically the same for
      LCS and XMPP connections, so IT2ME still magically works even though
      SignalingAddress believes the connection type is XMPP.
    
    This CL cleans up the type inferring logic in SignalingAddress so that
    future developers will not misuse it.
    
    Bug: 798902
    Change-Id: I66d5d1af4c7510d2dd2775769689288a9f2333e9
    Reviewed-on: https://chromium-review.googlesource.com/889984Reviewed-by: default avatarJamie Walch <jamiewalch@chromium.org>
    Commit-Queue: Yuwei Huang <yuweih@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#533788}
    a8363245
signaling_address.cc 6.23 KB