• kelvinp's avatar
    [Webapp Refactor] Cleans up the ClientSession.EventHandler interface. · 79a9a66e
    kelvinp authored
    This CL provides a cleaner way to report session state changes with the following:
    1. Removes onError() callback on ClientSession Handler.  Instead, if an error
       is encountered before the session connects, onConnectionFailed() will be called,
       and similarly, onDisconnected() will be called for errors encountered after
       a session is connected.
    2. Removes the sessionStateChanged event on clientSession, so session state
       are reported consistently through the ClientSession.EventHandler interface.
    
    BUG=477522
    
    Review URL: https://codereview.chromium.org/1093373005
    
    Cr-Commit-Position: refs/heads/master@{#326853}
    79a9a66e
app_remoting_activity.js 6.04 KB