Hi,
In my case I needed to load an extension that needs to communicate with a native application.
In development I manage to do this by loading the extension with
--load-extension=path/to/extension and specifying a data directory with
--user-data-dir=UserDataDirectory. Then inside the UserDataDirectory there is the file manifest file for the
native messaging host configuration (UserDataDirectory/NativeMessagingHosts/com.xxx.chrome.plugin.helper.json).
This manifest needs to allow an specific extension to access the native application. At the moment I'm forcing the loaded extension to have a predefined key by using the method described
here. I don't know if there is a better way.