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

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

Issue 2259523003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/preference_validation_delegate.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc b/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc
index 76ee0dea6eb81d3e3f177fd659bf5e8c1f49710a..512e894c7722e6baacccacdedfae54b519b9b11d 100644
--- a/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc
@@ -67,8 +67,8 @@ void PreferenceValidationDelegate::OnAtomicPreferenceValidation(
}
incident->set_value_state(proto_value_state);
incident_receiver_->AddIncidentForProfile(
- profile_, base::WrapUnique(new TrackedPreferenceIncident(
- std::move(incident), is_personal)));
+ profile_, base::MakeUnique<TrackedPreferenceIncident>(
+ std::move(incident), is_personal));
}
}
@@ -91,8 +91,8 @@ void PreferenceValidationDelegate::OnSplitPreferenceValidation(
}
incident->set_value_state(proto_value_state);
incident_receiver_->AddIncidentForProfile(
- profile_, base::WrapUnique(new TrackedPreferenceIncident(
- std::move(incident), is_personal)));
+ profile_, base::MakeUnique<TrackedPreferenceIncident>(
+ std::move(incident), is_personal));
}
}

Powered by Google App Engine
This is Rietveld 408576698