diff --git a/libcef/browser/browser_main.cc b/libcef/browser/browser_main.cc index 6a8be8db9..fbadf3349 100644 --- a/libcef/browser/browser_main.cc +++ b/libcef/browser/browser_main.cc @@ -154,6 +154,8 @@ void CefBrowserMainParts::PreMainMessageLoopRun() { } } + // Spell checking support and possibly other subsystems retrieve the + // PrefService associated with a BrowserContext via UserPrefs::Get(). user_prefs::UserPrefs::Set(browser_context(), pref_service()); } @@ -184,6 +186,10 @@ void CefBrowserMainParts::PostDestroyThreads() { } void CefBrowserMainParts::AddBrowserContext(CefBrowserContext* context) { + // Spell checking support and possibly other subsystems retrieve the + // PrefService associated with a BrowserContext via UserPrefs::Get(). + user_prefs::UserPrefs::Set(context, pref_service()); + browser_contexts_.push_back(context); }