Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index 789a7a882d42d55b34096411c07cf067a87907ac..1b139b06f59a1b83b163528c65b35c388179fe0a 100644 |
--- a/content/common/sandbox_win.cc |
+++ b/content/common/sandbox_win.cc |
@@ -814,10 +814,12 @@ sandbox::ResultCode StartSandboxedProcess( |
} |
} |
+#if !defined(OFFICIAL_BUILD) |
// If stdout/stderr point to a Windows console, these calls will |
// have no effect. These calls can fail with SBOX_ERROR_BAD_PARAMS. |
policy->SetStdoutHandle(GetStdHandle(STD_OUTPUT_HANDLE)); |
policy->SetStderrHandle(GetStdHandle(STD_ERROR_HANDLE)); |
+#endif |
if (!delegate->PreSpawnTarget(policy.get())) |
return sandbox::SBOX_ERROR_DELEGATE_PRE_SPAWN; |