Moved permission delegate from external extension to the base class --
extension, preparing for implementing permission check for in-process
extensions.