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

@ -851,7 +851,7 @@ v8::Local<v8::Value> Session::GetAllExtensions() {
std::vector<const extensions::Extension*> extensions_vector;
for (const auto& extension : *installed_extensions) {
if (extension->location() !=
extensions::mojom::ManifestLocation::kExternalComponent)
extensions::mojom::ManifestLocation::kComponent)
extensions_vector.emplace_back(extension.get());
}
return gin::ConvertToV8(isolate_, extensions_vector);