cef_preference_manager_get_chrome_variations_as_switches

Function cef_preference_manager_get_chrome_variations_as_switches 

Source
pub unsafe extern "C" fn cef_preference_manager_get_chrome_variations_as_switches(
    switches: cef_string_list_t,
)
Expand description

Returns the current Chrome Variations configuration (combination of field trials and chrome://flags) as equivalent command-line switches (--[enable|disable]-features=XXXX, etc). These switches can be used to apply the same configuration when launching a CEF-based application. See https://developer.chrome.com/docs/web-platform/chrome-variations for background and details. Note that field trial tests are disabled by default in Official CEF builds (via the disable_fieldtrial_testing_config=true (1) GN flag). This function must be called on the browser process UI thread.