Does CEF supports Chromium policies?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Does CEF supports Chromium policies?

Postby rodrigobarros » Mon Dec 18, 2017 8:42 am

Hello all!

I´m trying to apply a policy on a cef based app. The policy that I´m looking to apply is "HardwareAccelerationModeEnabled". I´m using this as reference:
https://www.chromium.org/administrators/policy-list-3

I do know that it is possible to set GPU flag through command line but this would require repackaging apps which is not desired at the moment. So, I´m investigating the possibilies to use policy through registry settings.
So far, I managed to set the flag without problem on Chrome (HKLM\Software\Policies\Google\Chrome) & Chromium (HKLM\Software\Policies\Chromium ) but could not do the same for our CEF based apps.

Does anybody know how to use it on CEF based apps?

Thanks in advance!
rodrigobarros
Techie
 
Posts: 13
Joined: Wed Nov 02, 2016 1:52 pm

Re: Does CEF supports Chromium policies?

Postby magreenblatt » Mon Dec 18, 2017 12:17 pm

CEF does not support Chrome policy configuration. GPU will be used by default if available. You can disable it by passing the `--disable-gpu` command-line flag.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Does CEF supports Chromium policies?

Postby rodrigobarros » Mon Dec 18, 2017 12:40 pm

Thank you for clarifying it.
Unfortunately this would require repackaging of our CEF based apps. Is command-line flag the only possibility to disable GPU on CEF?
rodrigobarros
Techie
 
Posts: 13
Joined: Wed Nov 02, 2016 1:52 pm

Re: Does CEF supports Chromium policies?

Postby magreenblatt » Mon Dec 18, 2017 12:49 pm

You can also add the flag in CefApp::OnBeforeCommandLineProcessing
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 49 guests