• Stephane Zermatten's avatar
    [Autofill Assistant] Make the definition of the PromptProto nicer. · 20d9e431
    Stephane Zermatten authored
    This change updates the protocol used to control the PromptAction to
    make it more powerful and more in-line with the current protocol:
    
     - the suggestion and element existence results are merged into one list
     of choice.
    
     - the string result is replaced by an opaque server_payload result,
     which allows the server to include whatever data it wants.
    
    To make that work, this changes forwards the data proto as an opaque
    byte array between layers instead of a single UTF8 string that was used
    for both message and result.
    
    Bug: 1343266
    Change-Id: I601c31504bd231ef9904bced92fc350a939b6f9d
    Reviewed-on: https://chromium-review.googlesource.com/c/1346461
    Commit-Queue: Stephane Zermatten <szermatt@chromium.org>
    Reviewed-by: default avatarMathias Carlen <mcarlen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#610576}
    20d9e431
mock_action_delegate.h 6.25 KB