| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/safe_browsing/incident_reporting/binary_integrity_analy
zer_win.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy
zer_win.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 10 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 11 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_incid
ent.h" | 14 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_incid
ent.h" |
| 12 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 15 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
| 13 #include "chrome/common/chrome_version.h" | 16 #include "chrome/common/chrome_version.h" |
| 14 #include "chrome/common/safe_browsing/binary_feature_extractor.h" | 17 #include "chrome/common/safe_browsing/binary_feature_extractor.h" |
| 15 #include "chrome/common/safe_browsing/csd.pb.h" | 18 #include "chrome/common/safe_browsing/csd.pb.h" |
| 16 | 19 |
| 17 namespace safe_browsing { | 20 namespace safe_browsing { |
| 18 | 21 |
| 19 std::vector<base::FilePath> GetCriticalBinariesPath() { | 22 std::vector<base::FilePath> GetCriticalBinariesPath() { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } else { | 83 } else { |
| 81 // The binary is integral, remove previous report so that next incidents | 84 // The binary is integral, remove previous report so that next incidents |
| 82 // for the binary will be reported. | 85 // for the binary will be reported. |
| 83 ClearBinaryIntegrityForFile(incident_receiver.get(), | 86 ClearBinaryIntegrityForFile(incident_receiver.get(), |
| 84 binary_path.BaseName().AsUTF8Unsafe()); | 87 binary_path.BaseName().AsUTF8Unsafe()); |
| 85 } | 88 } |
| 86 } | 89 } |
| 87 } | 90 } |
| 88 | 91 |
| 89 } // namespace safe_browsing | 92 } // namespace safe_browsing |
| OLD | NEW |