• Mahmoud Gawad's avatar
    [Telemetry SWX] introduce untrusted app resources · c3833634
    Mahmoud Gawad authored
    Introduce telemetry_extension_ui/test/untrusted_app_resources directory
    that represents how untrusted resources should be loaded from disk using
    TelemetryExtensionUntrustedSource.
    
    The previously registered resources (i.e. untrusted.html) is no longer
    needed to be registered after introducing the capability to load
    untrusted resources from disk. See b:156583406
    
    This way, we simulate how 3P could load its resources and make
    telemetry requests.
    
    Also, since removing the registered resource untrusted.html would cause
    some browsertests to fail, modify the browsertest to load the
    registered resource: dpsl.js, instead.
    
    Bug: b:162875543
    
    Change-Id: Ia12c1c010b8150940fb5a4a46163cfac82f17a1b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2337473
    Commit-Queue: Mahmoud Gawad <mgawad@google.com>
    Reviewed-by: default avatarOleh Lamzin <lamzin@google.com>
    Reviewed-by: default avatarGiovanni Ortuño Urquidi <ortuno@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#796329}
    c3833634
telemetry_extension_ui.cc 4.69 KB