• Devlin Cronin's avatar
    [Extensions Click-to-Script] More extensions page data tweaks · c169b4e4
    Devlin Cronin authored
    Tweak the data sent to the extensions page slightly more. Move all
    runtime host permissions data into a separate field on the
    developerPrivate.Permissions struct, and unconditionally populate all
    fields (including specific granted hosts) if the feature is enabled.
    This simplifies some of the code we need to pass to the
    RuntimeHostPermissions element, since we can now just pass
    developerPrivate.RuntimeHostPermissions, and paves the way for adding
    a separate toggle-able implementation for extensions that request access
    to specific sites.
    
    No observable UI or behavior change is expected in this CL.
    
    Update and add tests for the same.
    
    Bug: 891803
    
    Cq-Include-Trybots: luci.chromium.try:closure_compilation
    Change-Id: Id95d3b0a77d8621db811a28fcdcfd705d60ed0f6
    Reviewed-on: https://chromium-review.googlesource.com/c/1295271
    Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
    Reviewed-by: default avatarKaran Bhatia <karandeepb@chromium.org>
    Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#605046}
    c169b4e4
detail_view.html 15.4 KB