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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h

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/mock_incident_receiver.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h b/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
index 36bebe7710e6afc695e2c4bdd3aa5c9e9e6f376e..6fb8cb676fdbc2af9798fdf1ba8ab2a14dc31b08 100644
--- a/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
+++ b/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MOCK_INCIDENT_RECEIVER_H_
#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MOCK_INCIDENT_RECEIVER_H_
+#include <utility>
+
#include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -36,13 +38,13 @@ class MockIncidentReceiver : public IncidentReceiver {
// An action that passes ownership of the incident in |arg0| to |recipient|.
ACTION_P(TakeIncident, recipient) {
- *recipient = arg0->Pass();
+ *recipient = std::move(*arg0);
}
// An action that passes ownership of the incident in |arg0| to the vector in
// |incidents|.
ACTION_P(TakeIncidentToVector, incidents) {
- incidents->push_back(arg0->Pass());
+ incidents->push_back(std::move(*arg0));
}
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698