Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2104)

Unified Diff: chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer.cc

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698