Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: content/renderer/renderer_main_platform_delegate_mac.mm

Issue 2944623003: Call SetApplicationIsDaemon() in V2 sandbox. (Closed)
Patch Set: Call SetApplicationIsDaemon() in V2 sandbox. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/sandbox_mac.mm ('k') | content/renderer/renderer_v2.sb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « content/common/sandbox_mac.mm ('k') | content/renderer/renderer_v2.sb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698