OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/at_exit.h" |
| 6 #include "base/command_line.h" |
| 7 #include "base/scoped_ptr.h" |
| 8 #include "chrome/app/client_util.h" |
| 9 #include "content/app/sandbox_helper_win.h" |
| 10 #include "sandbox/src/sandbox_types.h" |
| 11 |
| 12 int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) { |
| 13 sandbox::SandboxInterfaceInfo sandbox_info = {0}; |
| 14 content::InitializeSandboxInfo(&sandbox_info); |
| 15 |
| 16 base::AtExitManager exit_manager; |
| 17 CommandLine::Init(0, NULL); |
| 18 |
| 19 scoped_ptr<MainDllLoader> loader(MakeMainDllLoader()); |
| 20 return loader->Launch(instance, &sandbox_info); |
| 21 } |
OLD | NEW |