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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 return base::string16(); | 831 return base::string16(); |
832 } | 832 } |
833 | 833 |
834 return subject_name; | 834 return subject_name; |
835 } | 835 } |
836 | 836 |
837 // ---------------------------------------------------------------------------- | 837 // ---------------------------------------------------------------------------- |
838 | 838 |
839 // static | 839 // static |
840 EnumerateModulesModel* EnumerateModulesModel::GetInstance() { | 840 EnumerateModulesModel* EnumerateModulesModel::GetInstance() { |
841 return Singleton<EnumerateModulesModel>::get(); | 841 return base::Singleton<EnumerateModulesModel>::get(); |
842 } | 842 } |
843 | 843 |
844 bool EnumerateModulesModel::ShouldShowConflictWarning() const { | 844 bool EnumerateModulesModel::ShouldShowConflictWarning() const { |
845 // If the user has acknowledged the conflict notification, then we don't need | 845 // If the user has acknowledged the conflict notification, then we don't need |
846 // to show it again (because the scanning only happens once per the lifetime | 846 // to show it again (because the scanning only happens once per the lifetime |
847 // of the process). If we were to run the scanning more than once, then we'd | 847 // of the process). If we were to run the scanning more than once, then we'd |
848 // need to clear the flag somewhere when we are ready to show it again. | 848 // need to clear the flag somewhere when we are ready to show it again. |
849 if (conflict_notification_acknowledged_) | 849 if (conflict_notification_acknowledged_) |
850 return false; | 850 return false; |
851 | 851 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 GenerateHash(base::WideToUTF8(module.location), &location); | 1068 GenerateHash(base::WideToUTF8(module.location), &location); |
1069 GenerateHash(base::WideToUTF8(module.description), &description); | 1069 GenerateHash(base::WideToUTF8(module.description), &description); |
1070 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); | 1070 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); |
1071 | 1071 |
1072 base::string16 url = | 1072 base::string16 url = |
1073 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, | 1073 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, |
1074 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), | 1074 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), |
1075 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); | 1075 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); |
1076 return GURL(base::UTF16ToUTF8(url)); | 1076 return GURL(base::UTF16ToUTF8(url)); |
1077 } | 1077 } |
OLD | NEW |