diff --git a/shell/browser/api/electron_api_session.cc b/shell/browser/api/electron_api_session.cc index 74d8f796fa..2940dd8324 100644 --- a/shell/browser/api/electron_api_session.cc +++ b/shell/browser/api/electron_api_session.cc @@ -851,7 +851,7 @@ v8::Local Session::GetAllExtensions() { std::vector 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); diff --git a/shell/browser/extensions/electron_extension_system.cc b/shell/browser/extensions/electron_extension_system.cc index 5e2ea344dd..66ed510bd8 100644 --- a/shell/browser/extensions/electron_extension_system.cc +++ b/shell/browser/extensions/electron_extension_system.cc @@ -119,8 +119,7 @@ void ElectronExtensionSystem::LoadComponentExtensions() { root_directory = root_directory.Append(FILE_PATH_LITERAL("pdf")); scoped_refptr 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); }