Disable network service
https://github.com/electron/electron/issues/15791
This commit is contained in:
parent
0243b0ffc1
commit
e8f6f31fe4
1 changed files with 3 additions and 1 deletions
|
@ -45,6 +45,7 @@
|
||||||
#include "electron/buildflags/buildflags.h"
|
#include "electron/buildflags/buildflags.h"
|
||||||
#include "media/base/localized_strings.h"
|
#include "media/base/localized_strings.h"
|
||||||
#include "services/device/public/mojom/constants.mojom.h"
|
#include "services/device/public/mojom/constants.mojom.h"
|
||||||
|
#include "services/network/public/cpp/features.h"
|
||||||
#include "services/service_manager/public/cpp/connector.h"
|
#include "services/service_manager/public/cpp/connector.h"
|
||||||
#include "ui/base/idle/idle.h"
|
#include "ui/base/idle/idle.h"
|
||||||
#include "ui/base/material_design/material_design_controller.h"
|
#include "ui/base/material_design/material_design_controller.h"
|
||||||
|
@ -209,7 +210,8 @@ void AtomBrowserMainParts::InitializeFeatureList() {
|
||||||
// Can be reenabled when our site instance policy is aligned with chromium
|
// Can be reenabled when our site instance policy is aligned with chromium
|
||||||
// when node integration is enabled.
|
// when node integration is enabled.
|
||||||
disable_features +=
|
disable_features +=
|
||||||
std::string(",") + features::kSpareRendererForSitePerProcess.name;
|
std::string(",") + features::kSpareRendererForSitePerProcess.name +
|
||||||
|
std::string(",") + network::features::kNetworkService.name;
|
||||||
auto feature_list = std::make_unique<base::FeatureList>();
|
auto feature_list = std::make_unique<base::FeatureList>();
|
||||||
feature_list->InitializeFromCommandLine(enable_features, disable_features);
|
feature_list->InitializeFromCommandLine(enable_features, disable_features);
|
||||||
base::FeatureList::SetInstance(std::move(feature_list));
|
base::FeatureList::SetInstance(std::move(feature_list));
|
||||||
|
|
Loading…
Reference in a new issue