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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/blacklist_load_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: 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/blacklist_load_incident_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident_unittest.cc
index d9efc935e645357b29b88efd186177197516234e..fcd20423a741508d26ca70e4538ae9713b3c4e31 100644
--- a/chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident_unittest.cc
@@ -4,9 +4,10 @@
#include "chrome/browser/safe_browsing/incident_reporting/blacklist_load_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,11 +15,11 @@ namespace safe_browsing {
namespace {
-scoped_ptr<Incident> MakeIncident(const char* path) {
- scoped_ptr<ClientIncidentReport_IncidentData_BlacklistLoadIncident> incident(
- new ClientIncidentReport_IncidentData_BlacklistLoadIncident);
+std::unique_ptr<Incident> MakeIncident(const char* path) {
+ std::unique_ptr<ClientIncidentReport_IncidentData_BlacklistLoadIncident>
+ incident(new ClientIncidentReport_IncidentData_BlacklistLoadIncident);
incident->set_path(path);
- return make_scoped_ptr(new BlacklistLoadIncident(std::move(incident)));
+ return base::WrapUnique(new BlacklistLoadIncident(std::move(incident)));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698