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

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

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 369a6d28372957e7ab1317a5c583e873f543db55..91a09815bd5c7715f807d2efcf27ab359bf6da38 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,6 +4,8 @@
#include "chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident.h"
+#include <utility>
+
#include "base/memory/scoped_ptr.h"
#include "chrome/common/safe_browsing/csd.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -16,7 +18,7 @@ scoped_ptr<Incident> MakeIncident(const char* digest) {
scoped_ptr<ClientIncidentReport_IncidentData_BlacklistLoadIncident> incident(
new ClientIncidentReport_IncidentData_BlacklistLoadIncident);
incident->set_path("foo");
- return make_scoped_ptr(new BlacklistLoadIncident(incident.Pass()));
+ return make_scoped_ptr(new BlacklistLoadIncident(std::move(incident)));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698