fix: pdf viewer permissions (#29210)

* fix: pdf viewer permissions

* fixup for getAllExtensions
This commit is contained in:
John Kleinschmidt 2021-05-19 19:08:24 -04:00 committed by GitHub
parent cd3c6f9e37
commit d79ebc6dc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -119,8 +119,7 @@ void ElectronExtensionSystem::LoadComponentExtensions() {
root_directory = root_directory.Append(FILE_PATH_LITERAL("pdf"));
scoped_refptr<const Extension> pdf_extension =
extensions::Extension::Create(
root_directory,
extensions::mojom::ManifestLocation::kExternalComponent,
root_directory, extensions::mojom::ManifestLocation::kComponent,
*pdf_manifest, extensions::Extension::REQUIRE_KEY, &utf8_error);
extension_loader_->registrar()->AddExtension(pdf_extension);
}