OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/debug/stack_trace.h" | 7 #include "base/debug/stack_trace.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "content/public/app/content_main.h" | 10 #include "content/public/app/content_main.h" |
11 #include "services/navigation/content_client/main_delegate.h" | 11 #include "services/navigation/content_client/main_delegate.h" |
12 #include "services/shell/runner/init.h" | 12 #include "services/service_manager/runner/init.h" |
13 | 13 |
14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
15 #include "content/public/app/sandbox_helper_win.h" | 15 #include "content/public/app/sandbox_helper_win.h" |
16 #include "sandbox/win/src/sandbox_types.h" | 16 #include "sandbox/win/src/sandbox_types.h" |
17 #endif | 17 #endif |
18 | 18 |
19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
20 int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) { | 20 int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) { |
21 int argc = 0; | 21 int argc = 0; |
22 char** argv = nullptr; | 22 char** argv = nullptr; |
(...skipping 21 matching lines...) Expand all Loading... |
44 navigation::MainDelegate delegate; | 44 navigation::MainDelegate delegate; |
45 content::ContentMainParams params(&delegate); | 45 content::ContentMainParams params(&delegate); |
46 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
47 sandbox::SandboxInterfaceInfo sandbox_info = { 0 }; | 47 sandbox::SandboxInterfaceInfo sandbox_info = { 0 }; |
48 content::InitializeSandboxInfo(&sandbox_info); | 48 content::InitializeSandboxInfo(&sandbox_info); |
49 params.instance = GetModuleHandle(NULL); | 49 params.instance = GetModuleHandle(NULL); |
50 params.sandbox_info = &sandbox_info; | 50 params.sandbox_info = &sandbox_info; |
51 #endif | 51 #endif |
52 return content::ContentMain(params); | 52 return content::ContentMain(params); |
53 } | 53 } |
OLD | NEW |