mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Set enable_alloy_bootstrap=false to build with Alloy bootstrap code removed. Extension API is documented as deprecated in comments but not compiled out with this arg.
This commit is contained in:
@@ -26,10 +26,12 @@ namespace {
|
||||
cef_runtime_style_t GetExpectedRuntimeStyle(TestHandler* handler,
|
||||
bool is_devtools_popup,
|
||||
bool is_window) {
|
||||
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
|
||||
if (!IsChromeBootstrap()) {
|
||||
// Alloy runtime always uses Alloy style.
|
||||
return CEF_RUNTIME_STYLE_ALLOY;
|
||||
}
|
||||
#endif
|
||||
|
||||
const bool alloy_requested = is_window ? handler->use_alloy_style_window()
|
||||
: handler->use_alloy_style_browser();
|
||||
@@ -690,10 +692,12 @@ void TestHandler::SetUseViews(bool use_views) {
|
||||
|
||||
void TestHandler::SetUseAlloyStyle(bool use_alloy_style_browser,
|
||||
bool use_alloy_style_window) {
|
||||
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
|
||||
if (!IsChromeBootstrap()) {
|
||||
LOG(WARNING) << "SetUseAlloyStyle is ignored with the Alloy runtime";
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!CefCurrentlyOn(TID_UI)) {
|
||||
CefPostTask(TID_UI, base::BindOnce(&TestHandler::SetUseAlloyStyle, this,
|
||||
|
Reference in New Issue
Block a user