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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.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/tracked_preference_incident.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.cc b/chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.cc
index e607f7e7b4a459901f7e410c46d6a4c3767c33c7..223895f4bcb73c7b4a18c7da2084edfbae9bb095 100644
--- a/chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.cc
@@ -11,7 +11,7 @@
namespace safe_browsing {
TrackedPreferenceIncident::TrackedPreferenceIncident(
- scoped_ptr<ClientIncidentReport_IncidentData_TrackedPreferenceIncident>
+ std::unique_ptr<ClientIncidentReport_IncidentData_TrackedPreferenceIncident>
tracked_preference_incident,
bool is_personal)
: is_personal_(is_personal) {
@@ -41,9 +41,9 @@ uint32_t TrackedPreferenceIncident::ComputeDigest() const {
}
// Filter out personal preferences.
-scoped_ptr<ClientIncidentReport_IncidentData>
+std::unique_ptr<ClientIncidentReport_IncidentData>
TrackedPreferenceIncident::TakePayload() {
- scoped_ptr<ClientIncidentReport_IncidentData> payload(
+ std::unique_ptr<ClientIncidentReport_IncidentData> payload(
Incident::TakePayload());
if (is_personal_) {

Powered by Google App Engine
This is Rietveld 408576698