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/browser/chrome_browser_main_win.h" | 5 #include "chrome/browser/chrome_browser_main_win.h" |
6 | 6 |
7 #include <shellapi.h> | 7 #include <shellapi.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <windows.h> | 10 #include <windows.h> |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
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/environment.h" | 17 #include "base/environment.h" |
18 #include "base/files/file_enumerator.h" | 18 #include "base/files/file_enumerator.h" |
19 #include "base/files/file_path.h" | 19 #include "base/files/file_path.h" |
20 #include "base/files/file_util.h" | 20 #include "base/files/file_util.h" |
21 #include "base/i18n/rtl.h" | 21 #include "base/i18n/rtl.h" |
22 #include "base/location.h" | 22 #include "base/location.h" |
23 #include "base/macros.h" | 23 #include "base/macros.h" |
24 #include "base/metrics/histogram_macros.h" | 24 #include "base/metrics/histogram_macros.h" |
25 #include "base/path_service.h" | 25 #include "base/path_service.h" |
26 #include "base/scoped_native_library.h" | 26 #include "base/scoped_native_library.h" |
27 #include "base/strings/string_number_conversions.h" | 27 #include "base/strings/string_number_conversions.h" |
28 #include "base/strings/utf_string_conversions.h" | 28 #include "base/strings/utf_string_conversions.h" |
| 29 #include "base/threading/sequenced_worker_pool.h" |
29 #include "base/win/pe_image.h" | 30 #include "base/win/pe_image.h" |
30 #include "base/win/registry.h" | 31 #include "base/win/registry.h" |
31 #include "base/win/win_util.h" | 32 #include "base/win/win_util.h" |
32 #include "base/win/windows_version.h" | 33 #include "base/win/windows_version.h" |
33 #include "base/win/wrapped_window_proc.h" | 34 #include "base/win/wrapped_window_proc.h" |
34 #include "chrome/browser/conflicts/module_database_win.h" | 35 #include "chrome/browser/conflicts/module_database_win.h" |
35 #include "chrome/browser/conflicts/module_event_sink_impl_win.h" | 36 #include "chrome/browser/conflicts/module_event_sink_impl_win.h" |
36 #include "chrome/browser/first_run/first_run.h" | 37 #include "chrome/browser/first_run/first_run.h" |
37 #include "chrome/browser/install_verification/win/install_verification.h" | 38 #include "chrome/browser/install_verification/win/install_verification.h" |
38 #include "chrome/browser/profiles/profile_shortcut_manager.h" | 39 #include "chrome/browser/profiles/profile_shortcut_manager.h" |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 if (resource_id) | 539 if (resource_id) |
539 return l10n_util::GetStringUTF16(resource_id); | 540 return l10n_util::GetStringUTF16(resource_id); |
540 return base::string16(); | 541 return base::string16(); |
541 } | 542 } |
542 | 543 |
543 // static | 544 // static |
544 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { | 545 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { |
545 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); | 546 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); |
546 installer::SetTranslationDelegate(&delegate); | 547 installer::SetTranslationDelegate(&delegate); |
547 } | 548 } |
OLD | NEW |