• Takashi Toyoshima's avatar
    OOR-CORS: support DefaultPolicyHostRestrictions updates · 52f24673
    Takashi Toyoshima authored
    PermissionsUpdater::SetDefaultPolicyHostRestrictions needs to
    update cors access lists as well as other permission updating
    methods do.
    
    This patch extends NetworkPermissionsUpdateHelper to support
    the default policy host restrictions case in addition to
    permissions update.
    
    This makes following tests pass with OOR-CORS.
     - BackgroundXhrWebstoreTest.PolicyContentScriptXHR
     - BackgroundXhrWebstoreTest.PolicyUpdateXHR
     - BackgroundXhrWebstoreTest.PolicyUpdateIndividualXHR
     - BackgroundXhrWebstoreTest.PolicyUpdateDefaultXHR
    
    Bug: 907428
    Change-Id: I0ae7777bd87baa1c98dfbefba44b9911eb9c08f8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1478661Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
    Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#637600}
    52f24673
extension_management_test_util.cc 12.4 KB