| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <shlwapi.h> | 6 #include <shlwapi.h> |
| 7 | 7 |
| 8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "chrome/common/chrome_result_codes.h" | 34 #include "chrome/common/chrome_result_codes.h" |
| 35 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
| 36 #include "chrome/common/env_vars.h" | 36 #include "chrome/common/env_vars.h" |
| 37 #include "chrome/installer/util/google_update_constants.h" | 37 #include "chrome/installer/util/google_update_constants.h" |
| 38 #include "chrome/installer/util/google_update_settings.h" | 38 #include "chrome/installer/util/google_update_settings.h" |
| 39 #include "chrome/installer/util/install_util.h" | 39 #include "chrome/installer/util/install_util.h" |
| 40 #include "chrome/installer/util/util_constants.h" | 40 #include "chrome/installer/util/util_constants.h" |
| 41 #include "components/crash/content/app/breakpad_win.h" | 41 #include "components/crash/content/app/breakpad_win.h" |
| 42 #include "components/crash/content/app/crash_reporter_client.h" | 42 #include "components/crash/content/app/crash_reporter_client.h" |
| 43 #include "components/metrics/client_info.h" | 43 #include "components/metrics/client_info.h" |
| 44 #include "content/public/app/startup_helper_win.h" | 44 #include "content/public/app/sandbox_helper_win.h" |
| 45 #include "sandbox/win/src/sandbox.h" | 45 #include "sandbox/win/src/sandbox.h" |
| 46 | 46 |
| 47 namespace { | 47 namespace { |
| 48 // The entry point signature of chrome.dll. | 48 // The entry point signature of chrome.dll. |
| 49 typedef int (*DLL_MAIN)(HINSTANCE, sandbox::SandboxInterfaceInfo*); | 49 typedef int (*DLL_MAIN)(HINSTANCE, sandbox::SandboxInterfaceInfo*); |
| 50 | 50 |
| 51 typedef void (*RelaunchChromeBrowserWithNewCommandLineIfNeededFunc)(); | 51 typedef void (*RelaunchChromeBrowserWithNewCommandLineIfNeededFunc)(); |
| 52 | 52 |
| 53 base::LazyInstance<ChromeCrashReporterClient>::Leaky g_chrome_crash_client = | 53 base::LazyInstance<ChromeCrashReporterClient>::Leaky g_chrome_crash_client = |
| 54 LAZY_INSTANCE_INITIALIZER; | 54 LAZY_INSTANCE_INITIALIZER; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 } | 366 } |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 MainDllLoader* MakeMainDllLoader() { | 369 MainDllLoader* MakeMainDllLoader() { |
| 370 #if defined(GOOGLE_CHROME_BUILD) | 370 #if defined(GOOGLE_CHROME_BUILD) |
| 371 return new ChromeDllLoader(); | 371 return new ChromeDllLoader(); |
| 372 #else | 372 #else |
| 373 return new ChromiumDllLoader(); | 373 return new ChromiumDllLoader(); |
| 374 #endif | 374 #endif |
| 375 } | 375 } |
| OLD | NEW |