mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-25 00:17:41 +01:00
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:
parent
e50ea8c29f
commit
8a35083b8f
@ -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());
|
user_prefs::UserPrefs::Set(browser_context(), pref_service());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,6 +186,10 @@ void CefBrowserMainParts::PostDestroyThreads() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CefBrowserMainParts::AddBrowserContext(CefBrowserContext* context) {
|
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);
|
browser_contexts_.push_back(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user