fix: [extensions] load extensions on the IO thread (#21811)
This commit is contained in:
parent
acb5b75057
commit
100a85f93a
5 changed files with 46 additions and 35 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/files/file_path.h"
|
||||
|
@ -43,14 +44,10 @@ AtomExtensionSystem::AtomExtensionSystem(BrowserContext* browser_context)
|
|||
|
||||
AtomExtensionSystem::~AtomExtensionSystem() = default;
|
||||
|
||||
const Extension* AtomExtensionSystem::LoadExtension(
|
||||
const base::FilePath& extension_dir) {
|
||||
return extension_loader_->LoadExtension(extension_dir);
|
||||
}
|
||||
|
||||
const Extension* AtomExtensionSystem::LoadApp(const base::FilePath& app_dir) {
|
||||
NOTIMPLEMENTED() << "Attempted to load platform app in Electron";
|
||||
return nullptr;
|
||||
void AtomExtensionSystem::LoadExtension(
|
||||
const base::FilePath& extension_dir,
|
||||
base::OnceCallback<void(const Extension*)> loaded) {
|
||||
extension_loader_->LoadExtension(extension_dir, std::move(loaded));
|
||||
}
|
||||
|
||||
void AtomExtensionSystem::FinishInitialization() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue