mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Delete Alloy bootstrap (fixes #3685)
This commit is contained in:
@@ -15,19 +15,7 @@
|
||||
#include "content/public/browser/global_routing_id.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
#include "cef/libcef/browser/net/scheme_handler.h"
|
||||
#endif
|
||||
|
||||
CefIOThreadState::CefIOThreadState() {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
// Using base::Unretained() is safe because both this callback and possible
|
||||
// deletion of |this| will execute on the IO thread, and this callback will
|
||||
// be executed first.
|
||||
CEF_POST_TASK(CEF_IOT, base::BindOnce(&CefIOThreadState::InitOnIOThread,
|
||||
base::Unretained(this)));
|
||||
#endif
|
||||
}
|
||||
CefIOThreadState::CefIOThreadState() = default;
|
||||
|
||||
CefIOThreadState::~CefIOThreadState() {
|
||||
CEF_REQUIRE_IOT();
|
||||
@@ -87,11 +75,6 @@ void CefIOThreadState::ClearSchemeHandlerFactories() {
|
||||
CEF_REQUIRE_IOT();
|
||||
|
||||
scheme_handler_factory_map_.clear();
|
||||
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
// Restore the default internal handlers.
|
||||
scheme::RegisterInternalHandlers(this);
|
||||
#endif
|
||||
}
|
||||
|
||||
CefRefPtr<CefSchemeHandlerFactory> CefIOThreadState::GetSchemeHandlerFactory(
|
||||
@@ -127,12 +110,3 @@ CefRefPtr<CefSchemeHandlerFactory> CefIOThreadState::GetSchemeHandlerFactory(
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
void CefIOThreadState::InitOnIOThread() {
|
||||
CEF_REQUIRE_IOT();
|
||||
|
||||
// Add the default internal handlers.
|
||||
scheme::RegisterInternalHandlers(this);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user