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

@@ -10,6 +10,7 @@
#include "libcef/browser/prefs/pref_store.h"
#include "libcef/browser/prefs/renderer_prefs.h"
#include "libcef/common/cef_switches.h"
#include "libcef/common/net_service/util.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
@@ -171,7 +172,7 @@ std::unique_ptr<PrefService> CreatePrefService(Profile* profile,
SSLConfigServiceManager::RegisterPrefs(registry.get());
update_client::RegisterPrefs(registry.get());
if (!command_line->HasSwitch(switches::kEnableNetworkService)) {
if (!net_service::IsEnabled()) {
CefURLRequestContextGetter::RegisterPrefs(registry.get());
} else if (!profile) {
SystemNetworkContextManager::RegisterPrefs(registry.get());