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/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/environment.h" | 10 #include "base/environment.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
25 #include "chrome/common/chrome_result_codes.h" | 25 #include "chrome/common/chrome_result_codes.h" |
26 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
27 #include "chrome/common/env_vars.h" | 27 #include "chrome/common/env_vars.h" |
28 #include "chrome/installer/util/browser_distribution.h" | 28 #include "chrome/installer/util/browser_distribution.h" |
29 #include "chrome/installer/util/channel_info.h" | 29 #include "chrome/installer/util/channel_info.h" |
30 #include "chrome/installer/util/google_update_constants.h" | 30 #include "chrome/installer/util/google_update_constants.h" |
31 #include "chrome/installer/util/google_update_settings.h" | 31 #include "chrome/installer/util/google_update_settings.h" |
32 #include "chrome/installer/util/install_util.h" | 32 #include "chrome/installer/util/install_util.h" |
33 #include "chrome/installer/util/util_constants.h" | 33 #include "chrome/installer/util/util_constants.h" |
34 #include "components/breakpad/breakpad_win.h" | 34 #include "components/breakpad/app/breakpad_win.h" |
35 | 35 |
36 namespace { | 36 namespace { |
37 // The entry point signature of chrome.dll. | 37 // The entry point signature of chrome.dll. |
38 typedef int (*DLL_MAIN)(HINSTANCE, sandbox::SandboxInterfaceInfo*); | 38 typedef int (*DLL_MAIN)(HINSTANCE, sandbox::SandboxInterfaceInfo*); |
39 | 39 |
40 typedef void (*RelaunchChromeBrowserWithNewCommandLineIfNeededFunc)(); | 40 typedef void (*RelaunchChromeBrowserWithNewCommandLineIfNeededFunc)(); |
41 | 41 |
42 // Returns true if the build date for this module precedes the expiry date | 42 // Returns true if the build date for this module precedes the expiry date |
43 // for the pre-read experiment. | 43 // for the pre-read experiment. |
44 bool PreReadExperimentIsActive() { | 44 bool PreReadExperimentIsActive() { |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 } | 347 } |
348 }; | 348 }; |
349 | 349 |
350 MainDllLoader* MakeMainDllLoader() { | 350 MainDllLoader* MakeMainDllLoader() { |
351 #if defined(GOOGLE_CHROME_BUILD) | 351 #if defined(GOOGLE_CHROME_BUILD) |
352 return new ChromeDllLoader(); | 352 return new ChromeDllLoader(); |
353 #else | 353 #else |
354 return new ChromiumDllLoader(); | 354 return new ChromiumDllLoader(); |
355 #endif | 355 #endif |
356 } | 356 } |
OLD | NEW |