mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* perf: avoid making an unnecessary copy of the vector MimeTypesHandler::GetMIMETypeAllowlist() returns a const&, so we can iterate that directly instead of making a temporary copy of it. * perf: move the call to ExtensionRegistry::Get() outside of the loop Also, keep the previous behavior of not calling it at all if there aren't any whitelisted extensions. * perf: avoid redundant map lookup * refactor: const correctness * refactor: cleanup