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

@@ -272,7 +272,8 @@ bool IsNetworkServiceEnabled() {
if (state == -1) {
CefRefPtr<CefCommandLine> command_line =
CefCommandLine::GetGlobalCommandLine();
state = command_line->HasSwitch("enable-network-service") ? 1 : 0;
const std::string& value = command_line->GetSwitchValue("disable-features");
state = value.find("NetworkService") == std::string::npos ? 1 : 0;
}
return state ? true : false;
}