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 <Tlhelp32.h> | 7 #include <Tlhelp32.h> |
8 #include <wintrust.h> | 8 #include <wintrust.h> |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/version.h" | 23 #include "base/version.h" |
24 #include "base/win/registry.h" | 24 #include "base/win/registry.h" |
25 #include "base/win/scoped_handle.h" | 25 #include "base/win/scoped_handle.h" |
26 #include "base/win/windows_version.h" | 26 #include "base/win/windows_version.h" |
27 #include "chrome/browser/chrome_notification_types.h" | 27 #include "chrome/browser/chrome_notification_types.h" |
28 #include "chrome/browser/net/service_providers_win.h" | 28 #include "chrome/browser/net/service_providers_win.h" |
29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
30 #include "content/public/browser/notification_service.h" | 30 #include "content/public/browser/notification_service.h" |
31 #include "crypto/sha2.h" | 31 #include "crypto/sha2.h" |
32 #include "grit/generated_resources.h" | 32 #include "grit/generated_resources.h" |
33 #include "grit/google_chrome_strings.h" | |
34 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
35 | 34 |
36 using content::BrowserThread; | 35 using content::BrowserThread; |
37 | 36 |
38 // The period of time (in milliseconds) to wait until checking to see if any | 37 // The period of time (in milliseconds) to wait until checking to see if any |
39 // incompatible modules exist. | 38 // incompatible modules exist. |
40 static const int kModuleCheckDelayMs = 45 * 1000; | 39 static const int kModuleCheckDelayMs = 45 * 1000; |
41 | 40 |
42 // The path to the Shell Extension key in the Windows registry. | 41 // The path to the Shell Extension key in the Windows registry. |
43 static const wchar_t kRegPath[] = | 42 static const wchar_t kRegPath[] = |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 GenerateHash(base::WideToUTF8(module.location), &location); | 1036 GenerateHash(base::WideToUTF8(module.location), &location); |
1038 GenerateHash(base::WideToUTF8(module.description), &description); | 1037 GenerateHash(base::WideToUTF8(module.description), &description); |
1039 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); | 1038 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); |
1040 | 1039 |
1041 base::string16 url = | 1040 base::string16 url = |
1042 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, | 1041 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, |
1043 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), | 1042 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), |
1044 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); | 1043 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); |
1045 return GURL(base::UTF16ToUTF8(url)); | 1044 return GURL(base::UTF16ToUTF8(url)); |
1046 } | 1045 } |
OLD | NEW |