| 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/win/enumerate_modules_model.h" | 5 #include "chrome/browser/win/enumerate_modules_model.h" |
| 6 | 6 |
| 7 #include <softpub.h> | 7 #include <softpub.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <tlhelp32.h> | 10 #include <tlhelp32.h> |
| 11 #include <wincrypt.h> | 11 #include <wincrypt.h> |
| 12 #include <wintrust.h> | 12 #include <wintrust.h> |
| 13 #include <mscat.h> // NOLINT: This must be after wincrypt and wintrust. | 13 #include <mscat.h> // NOLINT: This must be after wincrypt and wintrust. |
| 14 | 14 |
| 15 #include <algorithm> | 15 #include <algorithm> |
| 16 | 16 |
| 17 #include "base/bind.h" | 17 #include "base/bind.h" |
| 18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
| 19 #include "base/debug/leak_annotations.h" | 19 #include "base/debug/leak_annotations.h" |
| 20 #include "base/environment.h" | 20 #include "base/environment.h" |
| 21 #include "base/file_version_info.h" | 21 #include "base/file_version_info.h" |
| 22 #include "base/files/file_path.h" | 22 #include "base/files/file_path.h" |
| 23 #include "base/i18n/case_conversion.h" | 23 #include "base/i18n/case_conversion.h" |
| 24 #include "base/macros.h" | 24 #include "base/macros.h" |
| 25 #include "base/metrics/histogram.h" | 25 #include "base/metrics/histogram_macros.h" |
| 26 #include "base/scoped_generic.h" | 26 #include "base/scoped_generic.h" |
| 27 #include "base/strings/string_number_conversions.h" | 27 #include "base/strings/string_number_conversions.h" |
| 28 #include "base/strings/string_util.h" | 28 #include "base/strings/string_util.h" |
| 29 #include "base/strings/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
| 30 #include "base/time/time.h" | 30 #include "base/time/time.h" |
| 31 #include "base/values.h" | 31 #include "base/values.h" |
| 32 #include "base/version.h" | 32 #include "base/version.h" |
| 33 #include "base/win/registry.h" | 33 #include "base/win/registry.h" |
| 34 #include "base/win/scoped_handle.h" | 34 #include "base/win/scoped_handle.h" |
| 35 #include "base/win/windows_version.h" | 35 #include "base/win/windows_version.h" |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 module_enumerator_.reset(); | 858 module_enumerator_.reset(); |
| 859 | 859 |
| 860 UMA_HISTOGRAM_COUNTS_100("Conflicts.SuspectedBadModules", | 860 UMA_HISTOGRAM_COUNTS_100("Conflicts.SuspectedBadModules", |
| 861 suspected_bad_modules_detected_); | 861 suspected_bad_modules_detected_); |
| 862 UMA_HISTOGRAM_COUNTS_100("Conflicts.ConfirmedBadModules", | 862 UMA_HISTOGRAM_COUNTS_100("Conflicts.ConfirmedBadModules", |
| 863 confirmed_bad_modules_detected_); | 863 confirmed_bad_modules_detected_); |
| 864 | 864 |
| 865 // Forward the callback to any registered observers. | 865 // Forward the callback to any registered observers. |
| 866 FOR_EACH_OBSERVER(Observer, observers_, OnScanCompleted()); | 866 FOR_EACH_OBSERVER(Observer, observers_, OnScanCompleted()); |
| 867 } | 867 } |
| OLD | NEW |