Branded Chromium Windows Registry Entries

192 views
Skip to first unread message

Tom A

unread,
Sep 4, 2018, 9:44:07 PM9/4/18
to Chromium-dev
I'm planning on building a branded Chromium and would like to use some of the Policy List setting functionality, however I do not want to collide with official Chrome or Chromium entries in the Windows Registry.  As a simple example, say I wanted to configure the policy at Software\Policies\Google\Chrome\DefaultPopupsSetting of course I don't want to change *that* entry because I don't want to effect Chrome installs on the machine.  Is there a way to do something like Software\Policies\Google\BRANDED-CHROME\DefaultPopupsSetting   for all the entries in the branded version?  Thanks

Robert Shield

unread,
Sep 4, 2018, 10:43:09 PM9/4/18
to tome...@gmail.com, Chromium-dev
The paths Chrome/Chromium use to access policy keys in the registry are generated by generate_policy_source.py, with the path constants in particular being set here.

If you build Chromium, you'll find in your output folder a file like this containing the definitions: src/out/win-Debug/gen/components/policy/policy_constants.cc

The easy way to change this is to modify the policy generation script to generate a different registry path for Chromium to look in.

Also, quick branding note that it would not be ok to use Software\Policies\Google\BRANDED-CHROME as a path, if you are not shipping something built by Google. Rather you'd want to use the path Software\Policies\BRANDED-CHROMIUM-PORT without "Google" or "Chrome" in the path.


On Tue, Sep 4, 2018 at 9:36 PM, Tom A <tome...@gmail.com> wrote:
I'm planning on building a branded Chromium and would like to use some of the Policy List setting functionality, however I do not want to collide with official Chrome or Chromium entries in the Windows Registry.  As a simple example, say I wanted to configure the policy at Software\Policies\Google\Chrome\DefaultPopupsSetting of course I don't want to change *that* entry because I don't want to effect Chrome installs on the machine.  Is there a way to do something like Software\Policies\Google\BRANDED-CHROME\DefaultPopupsSetting   for all the entries in the branded version?  Thanks

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/f19bc796-4a98-441d-bcd0-cce76f3806bf%40chromium.org.

Tom A

unread,
Sep 5, 2018, 2:37:12 PM9/5/18
to Chromium-dev, tome...@gmail.com
Thanks, this helps a ton.  I'll be sure to remove Google because this version certainly is not affiliated with Google or Chrome.
Reply all
Reply to author
Forward
0 new messages