summaryrefslogtreecommitdiffstats
path: root/apps/shell
diff options
context:
space:
mode:
Diffstat (limited to 'apps/shell')
-rw-r--r--apps/shell/app/DEPS2
-rw-r--r--apps/shell/app/shell_main.cc18
2 files changed, 20 insertions, 0 deletions
diff --git a/apps/shell/app/DEPS b/apps/shell/app/DEPS
index 34169e4..36f09d4 100644
--- a/apps/shell/app/DEPS
+++ b/apps/shell/app/DEPS
@@ -10,4 +10,6 @@ include_rules = [
"+content/public/app",
"+content/public/browser",
"+content/public/common",
+
+ "+sandbox",
]
diff --git a/apps/shell/app/shell_main.cc b/apps/shell/app/shell_main.cc
index c81cfa0..687c61b 100644
--- a/apps/shell/app/shell_main.cc
+++ b/apps/shell/app/shell_main.cc
@@ -5,7 +5,25 @@
#include "apps/shell/app/shell_main_delegate.h"
#include "content/public/app/content_main.h"
+#if defined(OS_WIN)
+#include "content/public/app/startup_helper_win.h"
+#include "sandbox/win/src/sandbox_types.h"
+#endif
+
+#if defined(OS_WIN)
+
+int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
+ sandbox::SandboxInterfaceInfo sandbox_info = {0};
+ content::InitializeSandboxInfo(&sandbox_info);
+ apps::ShellMainDelegate delegate;
+ return content::ContentMain(instance, &sandbox_info, &delegate);
+}
+
+#else
+
int main(int argc, const char** argv) {
apps::ShellMainDelegate delegate;
return content::ContentMain(argc, argv, &delegate);
}
+
+#endif // OS_WIN