mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove compile-time checks for toolkit_views
The toolkit_views=true setting is supported (and now required) on all platforms.
This commit is contained in:
@@ -6,14 +6,11 @@
|
||||
#include "include/cef_browser.h"
|
||||
#include "libcef/browser/alloy/alloy_browser_host_impl.h"
|
||||
#include "libcef/browser/chrome/chrome_browser_host_impl.h"
|
||||
#include "libcef/browser/chrome/views/chrome_child_window.h"
|
||||
#include "libcef/browser/context.h"
|
||||
#include "libcef/browser/thread_util.h"
|
||||
#include "libcef/features/runtime.h"
|
||||
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
#include "libcef/browser/chrome/views/chrome_child_window.h"
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
class CreateBrowserHelper {
|
||||
@@ -164,12 +161,10 @@ void CefBrowserCreateParams::MaybeSetWindowInfo(
|
||||
CefRefPtr<CefBrowserHostBase> CefBrowserHostBase::Create(
|
||||
CefBrowserCreateParams& create_params) {
|
||||
if (cef::IsChromeRuntimeEnabled()) {
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
if (auto browser =
|
||||
chrome_child_window::MaybeCreateChildBrowser(create_params)) {
|
||||
return browser.get();
|
||||
}
|
||||
#endif
|
||||
auto browser = ChromeBrowserHostImpl::Create(create_params);
|
||||
return browser.get();
|
||||
}
|
||||
|
Reference in New Issue
Block a user