Index: chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.cc |
diff --git a/chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.cc b/chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.cc |
index 713dc2d63a6ba31d68fdaaa9b8bd8d0fcd298b1e..6db4232c4f0715584d88b9b07415c5a6b910d5f6 100644 |
--- a/chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.cc |
+++ b/chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.cc |
@@ -10,6 +10,7 @@ |
#include "base/bind.h" |
#include "base/callback.h" |
#include "base/files/file_util.h" |
+#include "base/memory/ptr_util.h" |
#include "base/metrics/histogram.h" |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/string_util.h" |
@@ -40,11 +41,11 @@ void RecordSignatureVerificationTime(size_t file_index, |
void ClearBinaryIntegrityForFile(IncidentReceiver* incident_receiver, |
const std::string& basename) { |
- scoped_ptr<ClientIncidentReport_IncidentData_BinaryIntegrityIncident> |
+ std::unique_ptr<ClientIncidentReport_IncidentData_BinaryIntegrityIncident> |
incident(new ClientIncidentReport_IncidentData_BinaryIntegrityIncident()); |
incident->set_file_basename(basename); |
incident_receiver->ClearIncidentForProcess( |
- make_scoped_ptr(new BinaryIntegrityIncident(std::move(incident)))); |
+ base::WrapUnique(new BinaryIntegrityIncident(std::move(incident)))); |
} |
void RegisterBinaryIntegrityAnalysis() { |