summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/sandbox_policy.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/sandbox_policy.cc b/chrome/browser/sandbox_policy.cc
index 5d3dcfc..4af55a6 100644
--- a/chrome/browser/sandbox_policy.cc
+++ b/chrome/browser/sandbox_policy.cc
@@ -397,6 +397,13 @@ base::ProcessHandle StartProcessWithAccess(CommandLine* cmd_line,
return 0;
} else {
AddPolicyForRenderer(policy, &on_sandbox_desktop);
+
+ if (type_str != switches::kRendererProcess) {
+ // Hack for Google Desktop crash. Trick GD into not injecting its DLL into
+ // this subprocess. See
+ // http://code.google.com/p/chromium/issues/detail?id=25580
+ cmd_line->AppendSwitchWithValue("ignored", " --type=renderer ");
+ }
}
if (!exposed_dir.empty()) {