master_preferences external protocol request

343 views
Skip to first unread message

insastro

unread,
Sep 22, 2016, 1:54:40 AM9/22/16
to Chromium-discuss
Hi

Is there a way of preconfiguring a "protocol_handler" exception in the master_preferences file?

For RDS users, I need to get this entry into the first run "local state" file when a user first runs Chrome:

"myApp": false


The purpose being to eliminate the "External Protocol Request" message presented to users.



I've looked at various links surrounding the subject, but not found a definitive answer.  I don't know if it can be suppressed with policy as an alternative?  For example, I'm not sure if RegisteredProtocolHandlers is for this purpose, but the syntax I'd need to use is not clear.

Julian Pastarmov

unread,
Sep 22, 2016, 5:28:02 AM9/22/16
to Chromium-discuss
Hi,

I don't think there is a policy for that already and it is certainly worth putting this as a request on http://crbug.com.

Have you tried putting this in the master prefs file exactly in the way it should appear in the local state file? E.g. :

"protocol_handler": { "excluded_schemes": { "myApp": false }} 

Not every preference can be set through the master preferences though and I don't know if this is one of the enabled ones.

Best,
Julian

insastro

unread,
Sep 22, 2016, 5:53:08 AM9/22/16
to Chromium-discuss
Hi, 

Thanks for the reply.  Yes I've tried entering the json syntax into the master prefs, but no luck with getting it into the "first run" local state file.  I was pretty sure they syntax I was creating was fine and have just tried the below too without success.  

I can edit the local state file with a login script, but the if chrome has never been run then the local state file doesn't exist.  If I create a local state file first (by creating the parent directory and copying a template local state file) then it gets overwritten on first run.

I've also found that the protocol_hander section doesn't appear in the local state until I hit a "protocol exception" site.
Reply all
Reply to author
Forward
0 new messages