mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Move custom scheme registration to CefContentClient. This works around a problem on Linux where the zygote process has no CefContentRendererClient instance at the time that CefContentClient::AddAdditionalSchemes is executed (the zygote process is later forked to create new render processes).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1271 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "libcef/browser/content_browser_client.h"
|
||||
#include "libcef/renderer/content_renderer_client.h"
|
||||
#include "libcef/common/content_client.h"
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/logging.h"
|
||||
@@ -29,15 +28,9 @@ bool CefSchemeRegistrarImpl::AddCustomScheme(
|
||||
if (is_standard)
|
||||
standard_schemes_.push_back(scheme);
|
||||
|
||||
if (CefContentRendererClient::Get()) {
|
||||
CefContentRendererClient::Get()->AddCustomScheme(scheme,
|
||||
is_standard,
|
||||
is_local,
|
||||
is_display_isolated);
|
||||
}
|
||||
|
||||
if (CefContentBrowserClient::Get())
|
||||
CefContentBrowserClient::Get()->AddCustomScheme(scheme);
|
||||
CefContentClient::SchemeInfo scheme_info = {
|
||||
scheme, is_standard, is_local, is_display_isolated};
|
||||
CefContentClient::Get()->AddCustomScheme(scheme_info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user