mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02: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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user