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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.h

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/tracked_preference_incident.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.h b/chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.h
index 6b2ac93e1d356b28682bf136d92735c8771d1ba0..0c27f2b3c3f64ee6c67fdc8d86baf25f75f01417 100644
--- a/chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.h
+++ b/chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident.h"
namespace safe_browsing {
@@ -20,7 +21,8 @@ class ClientIncidentReport_IncidentData_TrackedPreferenceIncident;
class TrackedPreferenceIncident : public Incident {
public:
TrackedPreferenceIncident(
- scoped_ptr<ClientIncidentReport_IncidentData_TrackedPreferenceIncident>
+ std::unique_ptr<
+ ClientIncidentReport_IncidentData_TrackedPreferenceIncident>
tracked_preference,
bool is_personal);
~TrackedPreferenceIncident() override;
@@ -29,7 +31,7 @@ class TrackedPreferenceIncident : public Incident {
IncidentType GetType() const override;
std::string GetKey() const override;
uint32_t ComputeDigest() const override;
- scoped_ptr<ClientIncidentReport_IncidentData> TakePayload() override;
+ std::unique_ptr<ClientIncidentReport_IncidentData> TakePayload() override;
private:
bool is_personal_;

Powered by Google App Engine
This is Rietveld 408576698