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/enumerate_modules_model_win.h" | 5 #include "chrome/browser/enumerate_modules_model_win.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <Tlhelp32.h> | 9 #include <Tlhelp32.h> |
10 #include <wintrust.h> | 10 #include <wintrust.h> |
11 #include <algorithm> | 11 #include <algorithm> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/environment.h" | 15 #include "base/environment.h" |
16 #include "base/file_version_info_win.h" | 16 #include "base/file_version_info_win.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/i18n/case_conversion.h" | 18 #include "base/i18n/case_conversion.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/scoped_ptr.h" |
20 #include "base/metrics/histogram.h" | 21 #include "base/metrics/histogram.h" |
21 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
22 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
23 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
24 #include "base/time/time.h" | 25 #include "base/time/time.h" |
25 #include "base/values.h" | 26 #include "base/values.h" |
26 #include "base/version.h" | 27 #include "base/version.h" |
27 #include "base/win/registry.h" | 28 #include "base/win/registry.h" |
28 #include "base/win/scoped_handle.h" | 29 #include "base/win/scoped_handle.h" |
29 #include "base/win/windows_version.h" | 30 #include "base/win/windows_version.h" |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 GenerateHash(base::WideToUTF8(module.location), &location); | 1072 GenerateHash(base::WideToUTF8(module.location), &location); |
1072 GenerateHash(base::WideToUTF8(module.description), &description); | 1073 GenerateHash(base::WideToUTF8(module.description), &description); |
1073 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); | 1074 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); |
1074 | 1075 |
1075 base::string16 url = | 1076 base::string16 url = |
1076 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, | 1077 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, |
1077 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), | 1078 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), |
1078 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); | 1079 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); |
1079 return GURL(base::UTF16ToUTF8(url)); | 1080 return GURL(base::UTF16ToUTF8(url)); |
1080 } | 1081 } |
OLD | NEW |