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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident_unittest.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/variations_seed_signature_incident_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident_unittest.cc
index 4e823e47cc009b72af487c4750091ce698440075..8b8efcad21ae14344b63bcca9028ab9189f86727 100644
--- a/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident_unittest.cc
@@ -4,9 +4,10 @@
#include "chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident.h"
+#include <memory>
#include <utility>
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "chrome/common/safe_browsing/csd.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -14,8 +15,9 @@ namespace safe_browsing {
namespace {
-scoped_ptr<Incident> MakeIncident(bool alternate) {
- scoped_ptr<ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident>
+std::unique_ptr<Incident> MakeIncident(bool alternate) {
+ std::unique_ptr<
+ ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident>
incident(
new ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident);
if (alternate) {
@@ -27,7 +29,7 @@ scoped_ptr<Incident> MakeIncident(bool alternate) {
"MEUCID+QmAfajh/kk4zZyv0IUisZ84sIddnjiW9yAXjFJIMFAiEAtVUHhFA/4M6Bff2Gaz"
"L7tXVLhURxUQcpiMg9eMLWO0U=");
}
- return make_scoped_ptr(
+ return base::WrapUnique(
new VariationsSeedSignatureIncident(std::move(incident)));
}

Powered by Google App Engine
This is Rietveld 408576698