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

Unified Diff: components/autofill/content/common/autofill_types_struct_traits_unittest.cc

Issue 2869673002: Use OnceCallback on Mojo interfaces in //components/autofill (Closed)
Patch Set: rebase Created 3 years, 7 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: components/autofill/content/common/autofill_types_struct_traits_unittest.cc
diff --git a/components/autofill/content/common/autofill_types_struct_traits_unittest.cc b/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
index ce4e7b42f655ad1fc202d552c3d401733f57abfa..2fa52408cf1790f439545a5f309e551e43e42679 100644
--- a/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
+++ b/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <utility>
+
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
@@ -208,49 +210,48 @@ class AutofillTypeTraitsTestImpl : public testing::Test,
}
// mojom::TypeTraitsTest:
- void PassFormData(const FormData& s,
- const PassFormDataCallback& callback) override {
- callback.Run(s);
+ void PassFormData(const FormData& s, PassFormDataCallback callback) override {
+ std::move(callback).Run(s);
}
void PassFormFieldData(const FormFieldData& s,
- const PassFormFieldDataCallback& callback) override {
- callback.Run(s);
+ PassFormFieldDataCallback callback) override {
+ std::move(callback).Run(s);
}
void PassFormDataPredictions(
const FormDataPredictions& s,
- const PassFormDataPredictionsCallback& callback) override {
- callback.Run(s);
+ PassFormDataPredictionsCallback callback) override {
+ std::move(callback).Run(s);
}
void PassFormFieldDataPredictions(
const FormFieldDataPredictions& s,
- const PassFormFieldDataPredictionsCallback& callback) override {
- callback.Run(s);
+ PassFormFieldDataPredictionsCallback callback) override {
+ std::move(callback).Run(s);
}
void PassPasswordFormFillData(
const PasswordFormFillData& s,
- const PassPasswordFormFillDataCallback& callback) override {
- callback.Run(s);
+ PassPasswordFormFillDataCallback callback) override {
+ std::move(callback).Run(s);
}
void PassPasswordFormGenerationData(
const PasswordFormGenerationData& s,
- const PassPasswordFormGenerationDataCallback& callback) override {
- callback.Run(s);
+ PassPasswordFormGenerationDataCallback callback) override {
+ std::move(callback).Run(s);
}
void PassPasswordForm(const PasswordForm& s,
- const PassPasswordFormCallback& callback) override {
- callback.Run(s);
+ PassPasswordFormCallback callback) override {
+ std::move(callback).Run(s);
}
void PassFormsPredictionsMap(
const FormsPredictionsMap& s,
- const PassFormsPredictionsMapCallback& callback) override {
- callback.Run(s);
+ PassFormsPredictionsMapCallback callback) override {
+ std::move(callback).Run(s);
}
private:
« no previous file with comments | « components/autofill/content/common/BUILD.gn ('k') | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698