mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-18 20:51:07 +01:00
6b2c1fe969
This change adds an --enable-network-service command-line flag to run with NetworkService enabled. To test: Run `cefclient --enable-network-service --disable-extensions`. The application should start, load a website and exit without crashing. Network-related handlers (for cookies, schemes, requests, etc) and extensions are not expected to work yet. There should be no functional change when running without the NetworkService enabled.
17 lines
466 B
C++
17 lines
466 B
C++
// Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
|
|
#include "libcef/common/net_service/util.h"
|
|
|
|
#include "base/feature_list.h"
|
|
#include "services/network/public/cpp/features.h"
|
|
|
|
namespace net_service {
|
|
|
|
bool IsEnabled() {
|
|
return base::FeatureList::IsEnabled(network::features::kNetworkService);
|
|
}
|
|
|
|
} // namespace net_service
|