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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/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/incident.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident.h b/chrome/browser/safe_browsing/incident_reporting/incident.h
index 761816d636d86e28a4af694724e159ec09b69778..fe8405c0f2315e71586a7574e857b710a02588d9 100644
--- a/chrome/browser/safe_browsing/incident_reporting/incident.h
+++ b/chrome/browser/safe_browsing/incident_reporting/incident.h
@@ -6,10 +6,11 @@
#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_INCIDENT_H_
#include <stdint.h>
+
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace safe_browsing {
@@ -57,7 +58,7 @@ class Incident {
virtual uint32_t ComputeDigest() const = 0;
// Returns the incident's payload.
- virtual scoped_ptr<ClientIncidentReport_IncidentData> TakePayload();
+ virtual std::unique_ptr<ClientIncidentReport_IncidentData> TakePayload();
// Returns the minimum level of consent required for reporting of the
// incident.
@@ -74,7 +75,7 @@ class Incident {
const ClientIncidentReport_IncidentData* payload() const;
private:
- scoped_ptr<ClientIncidentReport_IncidentData> payload_;
+ std::unique_ptr<ClientIncidentReport_IncidentData> payload_;
DISALLOW_COPY_AND_ASSIGN(Incident);
};

Powered by Google App Engine
This is Rietveld 408576698