• Devlin Cronin's avatar
    [Extensions Bindings] Fix GetPackageDirectoryEntry · bdc39893
    Devlin Cronin authored
    GetPackageDirectoryEntry has a ModuleSystem::NativesEnabledScope that
    wasn't quite long enough. We need to ensure that the scope allows the
    function to generate the callback
    (fileEntryBindingUtil.getBindDirectoryEntryCallback) to run with
    natives, since it may require modules in the background page.
    
    Expand the natives enabled scope by just enough to make this work.
    
    Bug: 653596
    Test: browser_tests --enable-features=NativeCrxBindings
                        --gtest_filter=*GetPackageDirectoryEntryApp*
    
    Change-Id: I209c4e8f92d0b10955d1ecafe489b68a2b18af88
    Reviewed-on: https://chromium-review.googlesource.com/898399Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
    Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#534060}
    bdc39893
runtime_hooks_delegate.cc 15.5 KB