OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <algorithm> |
7 #include <Tlhelp32.h> | 8 #include <Tlhelp32.h> |
8 #include <wintrust.h> | 9 #include <wintrust.h> |
9 | 10 |
10 #include "base/command_line.h" | 11 #include "base/command_line.h" |
11 #include "base/environment.h" | 12 #include "base/environment.h" |
12 #include "base/file_path.h" | 13 #include "base/file_path.h" |
13 #include "base/file_version_info_win.h" | 14 #include "base/file_version_info_win.h" |
14 #include "base/i18n/case_conversion.h" | 15 #include "base/i18n/case_conversion.h" |
15 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
16 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 GenerateHash(WideToUTF8(module.name), &filename); | 971 GenerateHash(WideToUTF8(module.name), &filename); |
971 GenerateHash(WideToUTF8(module.location), &location); | 972 GenerateHash(WideToUTF8(module.location), &location); |
972 GenerateHash(WideToUTF8(module.description), &description); | 973 GenerateHash(WideToUTF8(module.description), &description); |
973 GenerateHash(WideToUTF8(module.digital_signer), &signer); | 974 GenerateHash(WideToUTF8(module.digital_signer), &signer); |
974 | 975 |
975 string16 url = l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, | 976 string16 url = l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, |
976 ASCIIToUTF16(filename), ASCIIToUTF16(location), | 977 ASCIIToUTF16(filename), ASCIIToUTF16(location), |
977 ASCIIToUTF16(description), ASCIIToUTF16(signer)); | 978 ASCIIToUTF16(description), ASCIIToUTF16(signer)); |
978 return GURL(UTF16ToUTF8(url)); | 979 return GURL(UTF16ToUTF8(url)); |
979 } | 980 } |
OLD | NEW |