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

Unified Diff: mojo/public/cpp/bindings/tests/handle_passing_unittest.cc

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc b/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
index 549a9749db7d58449610d0e6d7c4a3539b00ed55..9ab721f93d5cd70bccb2a79828c84178f52c1d8c 100644
--- a/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
@@ -60,7 +60,7 @@ class SampleNamedObjectImpl : public sample::NamedObject {
: binding_(this, std::move(request)) {}
void SetName(const mojo::String& name) override { name_ = name; }
- void GetName(const mojo::Callback<void(mojo::String)>& callback) override {
+ void GetName(const GetNameCallback& callback) override {
callback.Run(name_);
}
@@ -141,12 +141,10 @@ class SampleFactoryImpl : public sample::Factory {
// interfaces.
void RequestImportedInterface(
InterfaceRequest<imported::ImportedInterface> imported,
- const mojo::Callback<void(InterfaceRequest<imported::ImportedInterface>)>&
- callback) override {}
+ const RequestImportedInterfaceCallback& callback) override {}
void TakeImportedInterface(
imported::ImportedInterfacePtr imported,
- const mojo::Callback<void(imported::ImportedInterfacePtr)>& callback)
- override {}
+ const TakeImportedInterfaceCallback& callback) override {}
private:
ScopedMessagePipeHandle pipe1_;
« no previous file with comments | « mojo/public/cpp/bindings/tests/connector_unittest.cc ('k') | mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698