mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: replace base::Bind() with base::BindOnce() / base::BindRepeating() (#27447)
This commit is contained in:
@@ -173,11 +173,11 @@ AppSorting* ElectronExtensionSystem::app_sorting() {
|
||||
void ElectronExtensionSystem::RegisterExtensionWithRequestContexts(
|
||||
const Extension* extension,
|
||||
base::OnceClosure callback) {
|
||||
base::PostTaskAndReply(
|
||||
FROM_HERE, {BrowserThread::IO},
|
||||
base::Bind(&InfoMap::AddExtension, info_map(),
|
||||
base::RetainedRef(extension), base::Time::Now(), false, false),
|
||||
std::move(callback));
|
||||
base::PostTaskAndReply(FROM_HERE, {BrowserThread::IO},
|
||||
base::BindOnce(&InfoMap::AddExtension, info_map(),
|
||||
base::RetainedRef(extension),
|
||||
base::Time::Now(), false, false),
|
||||
std::move(callback));
|
||||
}
|
||||
|
||||
void ElectronExtensionSystem::UnregisterExtensionWithRequestContexts(
|
||||
|
||||
Reference in New Issue
Block a user