Enable NetworkService by default (see issue #2622).

The NetworkService can still be disabled for a limited time by specifying the
`--disable-features=NetworkService` command-line flag.
This commit is contained in:
Marshall Greenblatt
2019-05-20 19:42:35 +03:00
parent 9ddb013875
commit 6011d45e38
6 changed files with 5 additions and 16 deletions

View File

@@ -46,7 +46,6 @@
#include "extensions/common/constants.h"
#include "ipc/ipc_buildflags.h"
#include "pdf/pdf_ppapi.h"
#include "services/network/public/cpp/features.h"
#include "services/service_manager/sandbox/switches.h"
#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
@@ -567,14 +566,6 @@ bool CefMainDelegate::BasicStartupComplete(int* exit_code) {
}
}
// Disable NetworkService for now
// TODO(cef): Implement the required changes for network service
if (network::features::kNetworkService.default_state ==
base::FEATURE_ENABLED_BY_DEFAULT &&
!command_line->HasSwitch(switches::kEnableNetworkService)) {
disable_features.push_back(network::features::kNetworkService.name);
}
if (!disable_features.empty()) {
DCHECK(!base::FeatureList::GetInstance());
std::string disable_features_str =