Fix crash when spell checking with custom CefRequestContext (issue #1497).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1974 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2015-01-20 21:59:59 +00:00
parent e50ea8c29f
commit 8a35083b8f
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}