| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 <malloc.h> | 6 #include <malloc.h> |
| 7 #include <shellscalingapi.h> | 7 #include <shellscalingapi.h> |
| 8 #include <stddef.h> |
| 8 #include <tchar.h> | 9 #include <tchar.h> |
| 9 | 10 |
| 10 #include <algorithm> | 11 #include <algorithm> |
| 11 #include <string> | 12 #include <string> |
| 12 | 13 |
| 13 #include "base/at_exit.h" | 14 #include "base/at_exit.h" |
| 14 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 16 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
| 17 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 20 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
| 21 #include "chrome/app/chrome_crash_reporter_client.h" | 23 #include "chrome/app/chrome_crash_reporter_client.h" |
| 22 #include "chrome/app/main_dll_loader_win.h" | 24 #include "chrome/app/main_dll_loader_win.h" |
| 23 #include "chrome/browser/chrome_process_finder_win.h" | 25 #include "chrome/browser/chrome_process_finder_win.h" |
| 24 #include "chrome/browser/policy/policy_path_parser.h" | 26 #include "chrome/browser/policy/policy_path_parser.h" |
| 25 #include "chrome/common/chrome_paths_internal.h" | 27 #include "chrome/common/chrome_paths_internal.h" |
| 26 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 27 #include "chrome_elf/chrome_elf_main.h" | 29 #include "chrome_elf/chrome_elf_main.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 return 0; | 214 return 0; |
| 213 | 215 |
| 214 // Load and launch the chrome dll. *Everything* happens inside. | 216 // Load and launch the chrome dll. *Everything* happens inside. |
| 215 VLOG(1) << "About to load main DLL."; | 217 VLOG(1) << "About to load main DLL."; |
| 216 MainDllLoader* loader = MakeMainDllLoader(); | 218 MainDllLoader* loader = MakeMainDllLoader(); |
| 217 int rc = loader->Launch(instance); | 219 int rc = loader->Launch(instance); |
| 218 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded(); | 220 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded(); |
| 219 delete loader; | 221 delete loader; |
| 220 return rc; | 222 return rc; |
| 221 } | 223 } |
| OLD | NEW |