Index: content/renderer/renderer_main_platform_delegate_mac.mm |
diff --git a/content/renderer/renderer_main_platform_delegate_mac.mm b/content/renderer/renderer_main_platform_delegate_mac.mm |
index c890040b81f38e1064b0cdb89a7396f96a08bed9..760a9527a3fbce41a0edda3a695d6f70a7abb902 100644 |
--- a/content/renderer/renderer_main_platform_delegate_mac.mm |
+++ b/content/renderer/renderer_main_platform_delegate_mac.mm |
@@ -19,6 +19,10 @@ |
#include "content/common/sandbox_mac.h" |
#include "content/public/common/content_switches.h" |
+extern "C" { |
+OSStatus SetApplicationIsDaemon(Boolean isDaemon); |
+}; |
+ |
namespace content { |
namespace { |
@@ -128,6 +132,12 @@ void RendererMainPlatformDelegate::PlatformUninitialize() { |
} |
bool RendererMainPlatformDelegate::EnableSandbox() { |
+ // Allow the process to continue without a LaunchServices ASN. The |
Robert Sesek
2017/06/28 22:15:23
Maybe moving this below InitializeSandbox() will f
|
+ // INIT_Process function in HIServices will abort if it cannot connect to |
+ // launchservicesd to get an ASN. By setting this flag, HIServices skips |
+ // that. |
+ SetApplicationIsDaemon(true); |
+ |
// Enable the sandbox. |
bool sandbox_initialized = InitializeSandbox(); |