Persist DevTools preferences with CefSettings.persist_user_preferences (issue #2077)

This commit is contained in:
Marshall Greenblatt
2017-02-28 17:40:28 -05:00
parent d2f48f6e08
commit fe68aee82c
3 changed files with 26 additions and 6 deletions

View File

@@ -234,6 +234,10 @@ std::unique_ptr<PrefService> CreatePrefService(
// Based on chrome/browser/ui/browser_ui_prefs.cc RegisterBrowserPrefs.
registry->RegisterBooleanPref(prefs::kAllowFileSelectionDialogs, true);
// DevTools preferences.
// Based on DevToolsWindow::RegisterProfilePrefs.
registry->RegisterDictionaryPref(prefs::kDevToolsPreferences);
if (command_line->HasSwitch(switches::kEnablePreferenceTesting)) {
// Preferences used with unit tests.
registry->RegisterBooleanPref("test.bool", true);