Skip to content

Commit

Permalink
fix android issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Mar 1, 2023
1 parent d1f8078 commit 19b40fa
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build/patches/00WIN-Enable-Network-Service-Sandbox-and-CIG.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Subject: WIN Enable Network Service Sandbox and CIG

---
chrome/browser/chrome_content_browser_client.cc | 2 +-
sandbox/policy/features.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
sandbox/policy/features.cc | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
--- a/chrome/browser/chrome_content_browser_client.cc
Expand All @@ -22,12 +22,17 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
diff --git a/sandbox/policy/features.cc b/sandbox/policy/features.cc
--- a/sandbox/policy/features.cc
+++ b/sandbox/policy/features.cc
@@ -15,7 +15,7 @@ namespace sandbox::policy::features {
@@ -14,8 +14,12 @@ namespace sandbox::policy::features {
// Enables network service sandbox.
// (Only causes an effect when feature kNetworkService is enabled.)
BASE_FEATURE(kNetworkServiceSandbox,
"NetworkServiceSandbox",
- base::FEATURE_DISABLED_BY_DEFAULT);
- "NetworkServiceSandbox",
+ "NetworkServiceSandbox", // enabled only in windows
+#if BUILDFLAG(IS_WIN)
+ base::FEATURE_ENABLED_BY_DEFAULT);
+#else
base::FEATURE_DISABLED_BY_DEFAULT);
+#endif
#endif // !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_FUCHSIA)

#if BUILDFLAG(IS_WIN)
Expand Down

0 comments on commit 19b40fa

Please sign in to comment.