feat: flesh out the api for //extensions (#21587)
This commit is contained in:
parent
8bc0c92137
commit
fa42b5980e
10 changed files with 159 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue