• Joel Hockey's avatar
    Show terminal progress when starting the container · ac0aeaba
    Joel Hockey authored
    TerminalPrivateApi registers as a CrostiniRestarterObserver
    and prints out information about each stage of startup.
    
    Terminals currently rely on having a unique ID which
    is passed from chrome to the JS code in the callback to
    openTerminalProcess.  This ID allows terminals to know
    which instance the onProcessOutput is meant for.
    
    Since this ID is not set for the startup text,
    terminal JS code will generate a random ID and pass it
    as a startup_id param in openTerminalProcess.  This
    will be used to send startup text, but this switch
    is not passed on to vsh process creation.
    
    Bug: 1016680
    Change-Id: Ibd0417f18f05f505b68f8f3f23ad23cb584dac0b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876292
    Auto-Submit: Joel Hockey <joelhockey@chromium.org>
    Reviewed-by: default avatarBen Wells <benwells@chromium.org>
    Reviewed-by: default avatarJulian Watson <juwa@google.com>
    Commit-Queue: Joel Hockey <joelhockey@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#708979}
    ac0aeaba
terminal_private_api.h 3.8 KB