• Karan Bhatia's avatar
    ChromeExtensionLoader: Prevent redundant loading of unpacked extensions. · ab07704b
    Karan Bhatia authored
    Unpacked extensions loaded through the ChromeTestExtensionLoader are loaded
    twice. The redundant load is due to the  false default value of
    |allow_file_access_|. However, unpacked extensions are by default, loaded with
    file access. This mismatch causes the unpacked extensions to be reloaded in
    ChromeTestExtensionLoader::CheckPermissions.
    
    Prevent this reload by using Manifest::ShouldAllowFileAccess for cases where
    clients don't explicitly set |allow_file_access_|.
    
    BUG=757695
    
    Change-Id: Ied4b25ccb89ff1410072186d360634609b8666e5
    Reviewed-on: https://chromium-review.googlesource.com/625247Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
    Commit-Queue: Karan Bhatia <karandeepb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#496472}
    ab07704b
chrome_test_extension_loader.h 5.69 KB