| 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 "chrome/app/main_dll_loader_win.h" | 5 #include "chrome/app/main_dll_loader_win.h" |
| 6 | 6 |
| 7 #include <windows.h> // NOLINT | 7 #include <windows.h> // NOLINT |
| 8 #include <shlwapi.h> // NOLINT | 8 #include <shlwapi.h> // NOLINT |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <userenv.h> // NOLINT | 10 #include <userenv.h> // NOLINT |
| 11 | 11 |
| 12 #include <memory> | 12 #include <memory> |
| 13 | 13 |
| 14 #include "base/base_paths.h" | 14 #include "base/base_paths.h" |
| 15 #include "base/base_switches.h" | 15 #include "base/base_switches.h" |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
| 19 #include "base/lazy_instance.h" | 19 #include "base/lazy_instance.h" |
| 20 #include "base/logging.h" | 20 #include "base/logging.h" |
| 21 #include "base/macros.h" | 21 #include "base/macros.h" |
| 22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
| 23 #include "base/strings/string16.h" | 23 #include "base/strings/string16.h" |
| 24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
| 25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
| 26 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
| 27 #include "base/trace_event/trace_event.h" | 27 #include "base/trace_event/trace_event.h" |
| 28 #include "base/win/scoped_handle.h" | 28 #include "base/win/scoped_handle.h" |
| 29 #include "base/win/windows_version.h" | 29 #include "base/win/windows_version.h" |
| 30 #include "chrome/app/chrome_crash_reporter_client.h" | 30 #include "chrome/app/chrome_crash_reporter_client_win.h" |
| 31 #include "chrome/app/chrome_watcher_client_win.h" | 31 #include "chrome/app/chrome_watcher_client_win.h" |
| 32 #include "chrome/app/chrome_watcher_command_line_win.h" | 32 #include "chrome/app/chrome_watcher_command_line_win.h" |
| 33 #include "chrome/app/file_pre_reader_win.h" | 33 #include "chrome/app/file_pre_reader_win.h" |
| 34 #include "chrome/app/kasko_client.h" | 34 #include "chrome/app/kasko_client.h" |
| 35 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" | 35 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" |
| 36 #include "chrome/common/chrome_constants.h" | 36 #include "chrome/common/chrome_constants.h" |
| 37 #include "chrome/common/chrome_paths.h" | 37 #include "chrome/common/chrome_paths.h" |
| 38 #include "chrome/common/chrome_result_codes.h" | 38 #include "chrome/common/chrome_result_codes.h" |
| 39 #include "chrome/common/chrome_switches.h" | 39 #include "chrome/common/chrome_switches.h" |
| 40 #include "chrome/common/metrics_constants_util_win.h" | 40 #include "chrome/common/metrics_constants_util_win.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 } | 292 } |
| 293 }; | 293 }; |
| 294 | 294 |
| 295 MainDllLoader* MakeMainDllLoader() { | 295 MainDllLoader* MakeMainDllLoader() { |
| 296 #if defined(GOOGLE_CHROME_BUILD) | 296 #if defined(GOOGLE_CHROME_BUILD) |
| 297 return new ChromeDllLoader(); | 297 return new ChromeDllLoader(); |
| 298 #else | 298 #else |
| 299 return new ChromiumDllLoader(); | 299 return new ChromiumDllLoader(); |
| 300 #endif | 300 #endif |
| 301 } | 301 } |
| OLD | NEW |