mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-05 13:37:41 +01:00
Remove NOTREACHED assertion in CefRegisterSchemeHandlerFactory because it may be hit during registration of internal schemes if CEF is shut down quickly (issue #571).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@970 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
22ed9d9140
commit
dc5c4c50ac
@ -283,10 +283,8 @@ bool CefRegisterSchemeHandlerFactory(
|
||||
const CefString& domain_name,
|
||||
CefRefPtr<CefSchemeHandlerFactory> factory) {
|
||||
// Verify that the context is in a valid state.
|
||||
if (!CONTEXT_STATE_VALID()) {
|
||||
NOTREACHED() << "context not valid";
|
||||
if (!CONTEXT_STATE_VALID())
|
||||
return false;
|
||||
}
|
||||
|
||||
if (CEF_CURRENTLY_ON(CEF_IOT)) {
|
||||
return CefUrlRequestManager::GetInstance()->AddFactory(scheme_name,
|
||||
@ -302,10 +300,8 @@ bool CefRegisterSchemeHandlerFactory(
|
||||
|
||||
bool CefClearSchemeHandlerFactories() {
|
||||
// Verify that the context is in a valid state.
|
||||
if (!CONTEXT_STATE_VALID()) {
|
||||
NOTREACHED() << "context not valid";
|
||||
if (!CONTEXT_STATE_VALID())
|
||||
return false;
|
||||
}
|
||||
|
||||
if (CEF_CURRENTLY_ON(CEF_IOT)) {
|
||||
CefUrlRequestManager::GetInstance()->ClearFactories();
|
||||
|
Loading…
x
Reference in New Issue
Block a user