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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/incident.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/incident.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident.cc b/chrome/browser/safe_browsing/incident_reporting/incident.cc
index ba3d110dbe93d90f508c8e7defe397ee629dcaee..3e7a79780af2c6ca34e0216c7c751bc0049dbdb8 100644
--- a/chrome/browser/safe_browsing/incident_reporting/incident.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/incident.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/safe_browsing/incident_reporting/incident.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/time/time.h"
#include "chrome/common/safe_browsing/csd.pb.h"
@@ -14,7 +16,7 @@ Incident::~Incident() {
}
scoped_ptr<ClientIncidentReport_IncidentData> Incident::TakePayload() {
- return payload_.Pass();
+ return std::move(payload_);
}
Incident::Incident() : payload_(new ClientIncidentReport_IncidentData) {

Powered by Google App Engine
This is Rietveld 408576698