mirror of
https://github.com/electron/electron.git
synced 2026-02-17 02:21:37 -05:00
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Cheng Zhao <zcbenz@gmail.com>
|
|
Date: Tue, 9 Apr 2019 14:57:02 -0700
|
|
Subject: disable_network_services_by_default.patch
|
|
|
|
Disable NetworkService by default.
|
|
|
|
This allows us to enable NetworkService with command line flags, which makes it
|
|
easier to work on NetworkService migration.
|
|
|
|
We should remove this patch after all Electron's code has been migrated to the
|
|
NetworkService.
|
|
|
|
diff --git a/services/network/public/cpp/features.cc b/services/network/public/cpp/features.cc
|
|
index ae63eaa3a0e58905332bcd3b5623c34c2b4a9281..36499b0051936c356801067b1ba7714a5a608f3b 100644
|
|
--- a/services/network/public/cpp/features.cc
|
|
+++ b/services/network/public/cpp/features.cc
|
|
@@ -21,7 +21,7 @@ const base::Feature kNetworkService {
|
|
"NetworkService",
|
|
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_FUCHSIA) || \
|
|
(defined(OS_LINUX) && !defined(IS_CHROMECAST))
|
|
- base::FEATURE_ENABLED_BY_DEFAULT
|
|
+ base::FEATURE_DISABLED_BY_DEFAULT
|
|
#else
|
|
base::FEATURE_DISABLED_BY_DEFAULT
|
|
#endif
|