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

Unified Diff: chrome/common/media_router/mojo/media_router_struct_traits_unittest.cc

Issue 2867713002: Use OnceCallback on Mojo interfaces in //chrome/common/media_router (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: chrome/common/media_router/mojo/media_router_struct_traits_unittest.cc
diff --git a/chrome/common/media_router/mojo/media_router_struct_traits_unittest.cc b/chrome/common/media_router/mojo/media_router_struct_traits_unittest.cc
index 676db6f54c56c60969a1d9e737f0b256c2b15cd5..232bb3c3171f8d99e87560ccfd12746749422d03 100644
--- a/chrome/common/media_router/mojo/media_router_struct_traits_unittest.cc
+++ b/chrome/common/media_router/mojo/media_router_struct_traits_unittest.cc
@@ -4,6 +4,8 @@
#include "chrome/common/media_router/mojo/media_router_struct_traits.h"
+#include <utility>
+
#include "base/message_loop/message_loop.h"
#include "chrome/common/media_router/discovery/media_sink_internal.h"
#include "chrome/common/media_router/mojo/media_router.mojom.h"
@@ -27,8 +29,8 @@ class MediaRouterStructTraitsTest
private:
// MediaRouterTraitsTestService Impl
void EchoMediaSink(const MediaSinkInternal& sink,
- const EchoMediaSinkCallback& callback) override {
- callback.Run(sink);
+ EchoMediaSinkCallback callback) override {
+ std::move(callback).Run(sink);
}
base::MessageLoop loop_;
« no previous file with comments | « chrome/common/media_router/mojo/BUILD.gn ('k') | chrome/utility/media_router/dial_device_description_parser_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698