Index: headless/app/headless_shell_main.cc |
diff --git a/headless/app/headless_shell_main.cc b/headless/app/headless_shell_main.cc |
index 3ae4553b06854f9745690e4cc992267a7e4862ad..7643c768465b7500c9b4fb9a6c10cdb6edf36e00 100644 |
--- a/headless/app/headless_shell_main.cc |
+++ b/headless/app/headless_shell_main.cc |
@@ -1,9 +1,20 @@ |
// Copyright 2016 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
- |
+#include "build/build_config.h" |
Sami
2017/03/27 14:07:58
nit: Blank line after the license block please.
dvallet
2017/03/28 02:35:59
Done
|
#include "headless/public/headless_shell.h" |
+#if defined(OS_WIN) |
+#include "content/public/app/sandbox_helper_win.h" |
+#include "sandbox/win/src/sandbox_types.h" |
+#endif |
+ |
int main(int argc, const char** argv) { |
+#if defined(OS_WIN) |
+ sandbox::SandboxInterfaceInfo sandbox_info = {0}; |
+ content::InitializeSandboxInfo(&sandbox_info); |
+ return headless::HeadlessShellMain(0, &sandbox_info); |
+#else |
return headless::HeadlessShellMain(argc, argv); |
+#endif // defined(OS_WIN) |
} |