mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user