  extern "C" {
  void CGSSetDenyWindowServerConnections(bool);
  void CGSShutdownServerConnections();
+@@ -54,6 +55,7 @@ int sandbox_apply(void* profile);
+ void sandbox_free_params(void* params);
+ void sandbox_free_profile(void* profile);
  };
 +#endif
  
  namespace content {
  namespace {
-@@ -345,8 +347,10 @@ void Sandbox::SandboxWarmup(int sandbox_type) {
+@@ -154,15 +156,20 @@ bool SandboxCompiler::InsertStringParam(const std::string& key,
+ void SandboxCompiler::FreeSandboxResources(void* profile,
+                                            void* params,
+                                            char* error) {
++#ifndef MAS_BUILD
+   if (error)
+     sandbox_free_error(error);
+   if (params)
+     sandbox_free_params(params);
+   if (profile)
+     sandbox_free_profile(profile);
++#endif
+ }
+ 
+ bool SandboxCompiler::CompileAndApplyProfile(std::string* error) {
++#ifdef MAS_BUILD
++  return false;
++#else
+   char* error_internal = nullptr;
+   void* profile = nullptr;
+   void* params = nullptr;
+@@ -203,6 +210,7 @@ bool SandboxCompiler::CompileAndApplyProfile(std::string* error) {
+   int result = sandbox_apply(profile);
+   FreeSandboxResources(profile, params, error_internal);
+   return result == 0;
++#endif
+ }
+ 
+ // static
+@@ -400,8 +408,10 @@ void Sandbox::SandboxWarmup(int sandbox_type) {
      // 10.8 and higher because doing it on earlier OSes causes layout tests to
      // fail <http://crbug.com/397642#c48>. This may cause two log messages to
      // be printed to the system logger on certain OS versions.

 }
 
diff --git a/net/dns/dns_config_service_posix.cc b/net/dns/dns_config_service_posix.cc
index 02877e7..973e485 100644
--- a/net/dns/dns_config_service_posix.cc
+++ b/net/dns/dns_config_service_posix.cc
@@ -202,6 +202,7 @@ class DnsConfigServicePosix::Watcher {

 
 using ui::AXNodeData;
 using content::AccessibilityMatchPredicate;
@@ -420,7 +422,9 @@ bool InitializeAccessibilityTreeSearch(
 
 - (void)detach {
   if (browserAccessibility_) {
