chrome: Support configuration of renderer prefs (see issue #2969)

This commit is contained in:
Marshall Greenblatt
2021-04-17 21:12:54 -04:00
parent 9756e15a23
commit cf1074cf49
8 changed files with 154 additions and 107 deletions

View File

@@ -36,6 +36,15 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
// for these preferences.
void SetCommandLinePrefDefaults(CommandLinePrefStore* prefs);
// Set default values based on CEF command-line flags for preferences that are
// not available via the PrefService. Chromium command-line flags should not
// exist for these preferences.
void SetDefaultPrefs(blink::web_pref::WebPreferences& web);
// Set preferences based on CefBrowserSettings.
void SetCefPrefs(const CefBrowserSettings& cef,
blink::web_pref::WebPreferences& web);
// Populate WebPreferences based on a combination of command-line values,
// PrefService and CefBrowserSettings.
void PopulateWebPreferences(content::RenderViewHost* rvh,