| 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 <stddef.h> |
| 9 #include <tchar.h> | 9 #include <tchar.h> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/installer/util/browser_distribution.h" | 32 #include "chrome/installer/util/browser_distribution.h" |
| 33 #include "chrome_elf/chrome_elf_main.h" | 33 #include "chrome_elf/chrome_elf_main.h" |
| 34 #include "components/crash/content/app/crash_reporter_client.h" | 34 #include "components/crash/content/app/crash_reporter_client.h" |
| 35 #include "components/crash/content/app/crash_switches.h" | 35 #include "components/crash/content/app/crash_switches.h" |
| 36 #include "components/crash/content/app/crashpad.h" | 36 #include "components/crash/content/app/crashpad.h" |
| 37 #include "components/crash/content/app/run_as_crashpad_handler_win.h" | 37 #include "components/crash/content/app/run_as_crashpad_handler_win.h" |
| 38 #include "components/startup_metric_utils/browser/startup_metric_utils.h" | 38 #include "components/startup_metric_utils/browser/startup_metric_utils.h" |
| 39 #include "components/startup_metric_utils/common/pre_read_field_trial_utils_win.
h" | 39 #include "components/startup_metric_utils/common/pre_read_field_trial_utils_win.
h" |
| 40 #include "content/public/common/content_switches.h" | 40 #include "content/public/common/content_switches.h" |
| 41 #include "content/public/common/result_codes.h" | 41 #include "content/public/common/result_codes.h" |
| 42 #include "ui/gfx/win/dpi.h" | |
| 43 | 42 |
| 44 namespace { | 43 namespace { |
| 45 | 44 |
| 46 base::LazyInstance<ChromeCrashReporterClient>::Leaky g_chrome_crash_client = | 45 base::LazyInstance<ChromeCrashReporterClient>::Leaky g_chrome_crash_client = |
| 47 LAZY_INSTANCE_INITIALIZER; | 46 LAZY_INSTANCE_INITIALIZER; |
| 48 | 47 |
| 49 base::LazyInstance<std::vector<crash_reporter::UploadedReport>>::Leaky | 48 base::LazyInstance<std::vector<crash_reporter::UploadedReport>>::Leaky |
| 50 g_uploaded_reports = LAZY_INSTANCE_INITIALIZER; | 49 g_uploaded_reports = LAZY_INSTANCE_INITIALIZER; |
| 51 | 50 |
| 52 // List of switches that it's safe to rendezvous early with. Fast start should | 51 // List of switches that it's safe to rendezvous early with. Fast start should |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 RemoveAppCompatFlagsEntry(); | 262 RemoveAppCompatFlagsEntry(); |
| 264 | 263 |
| 265 // Load and launch the chrome dll. *Everything* happens inside. | 264 // Load and launch the chrome dll. *Everything* happens inside. |
| 266 VLOG(1) << "About to load main DLL."; | 265 VLOG(1) << "About to load main DLL."; |
| 267 MainDllLoader* loader = MakeMainDllLoader(); | 266 MainDllLoader* loader = MakeMainDllLoader(); |
| 268 int rc = loader->Launch(instance); | 267 int rc = loader->Launch(instance); |
| 269 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded(); | 268 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded(); |
| 270 delete loader; | 269 delete loader; |
| 271 return rc; | 270 return rc; |
| 272 } | 271 } |
| OLD | NEW |