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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_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/preference_validation_delegate_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc
index 7fefdb2b40918a6da4e395e59a9046b23406aa32..b0d0d5e36798ca1a2588bfd82daa1b4915725699 100644
--- a/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h"
#include <stddef.h>
-
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -44,7 +44,7 @@ class PreferenceValidationDelegateTest : public testing::Test {
ON_CALL(*receiver, DoAddIncidentForProfile(IsNull(), _))
.WillByDefault(WithArg<1>(TakeIncidentToVector(&incidents_)));
instance_.reset(new safe_browsing::PreferenceValidationDelegate(
- nullptr, receiver.Pass()));
+ nullptr, std::move(receiver)));
}
static void ExpectValueStatesEquate(
@@ -133,13 +133,13 @@ class PreferenceValidationDelegateValues
scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
value->SetInteger("twenty-two", 22);
value->SetInteger("forty-seven", 47);
- return value.Pass();
+ return std::move(value);
}
case Value::TYPE_LIST: {
scoped_ptr<base::ListValue> value(new base::ListValue());
value->AppendInteger(22);
value->AppendInteger(47);
- return value.Pass();
+ return std::move(value);
}
default:
ADD_FAILURE() << "unsupported value type " << value_type;

Powered by Google App Engine
This is Rietveld 408576698