feat: flesh out the api for //extensions (#21587)

This commit is contained in:
Jeremy Apthorp 2020-01-13 14:56:28 -08:00 committed by GitHub
parent 8bc0c92137
commit fa42b5980e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 159 additions and 13 deletions

View file

@ -49,7 +49,7 @@ const Extension* AtomExtensionSystem::LoadExtension(
}
const Extension* AtomExtensionSystem::LoadApp(const base::FilePath& app_dir) {
CHECK(false); // Should never call LoadApp
NOTIMPLEMENTED() << "Attempted to load platform app in Electron";
return nullptr;
}
@ -66,6 +66,11 @@ void AtomExtensionSystem::ReloadExtension(const ExtensionId& extension_id) {
extension_loader_->ReloadExtension(extension_id);
}
void AtomExtensionSystem::RemoveExtension(const ExtensionId& extension_id) {
extension_loader_->UnloadExtension(
extension_id, extensions::UnloadedExtensionReason::UNINSTALL);
}
void AtomExtensionSystem::Shutdown() {
extension_loader_.reset();
}