| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 <windows.h> | 5 #include <windows.h> |
| 6 #include <tchar.h> | 6 #include <tchar.h> |
| 7 | 7 |
| 8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/win_util.h" | 10 #include "base/win_util.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 if (!sandbox_info.broker_services) | 37 if (!sandbox_info.broker_services) |
| 38 sandbox_info.target_services = sandbox::SandboxFactory::GetTargetServices(); | 38 sandbox_info.target_services = sandbox::SandboxFactory::GetTargetServices(); |
| 39 | 39 |
| 40 if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { | 40 if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { |
| 41 // Enforces strong DEP support. Vista uses the NXCOMPAT flag in the exe. | 41 // Enforces strong DEP support. Vista uses the NXCOMPAT flag in the exe. |
| 42 sandbox::SetCurrentProcessDEP(sandbox::DEP_ENABLED); | 42 sandbox::SetCurrentProcessDEP(sandbox::DEP_ENABLED); |
| 43 } | 43 } |
| 44 // Load and launch the chrome dll. *Everything* happens inside. | 44 // Load and launch the chrome dll. *Everything* happens inside. |
| 45 MainDllLoader* loader = MakeMainDllLoader(); | 45 MainDllLoader* loader = MakeMainDllLoader(); |
| 46 int rc = loader->Launch(instance, &sandbox_info); | 46 int rc = loader->Launch(instance, &sandbox_info); |
| 47 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded(); | |
| 48 delete loader; | 47 delete loader; |
| 49 | 48 |
| 50 return rc; | 49 return rc; |
| 51 } | 50 } |
| OLD | NEW |