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

Unified Diff: mash/wm/accelerator_registrar_apptest.cc

Issue 1614553002: Reduce boilerplate needed to configure mojo::Binding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke std::move Created 4 years, 11 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
« no previous file with comments | « mash/shelf/shelf_view.cc ('k') | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/accelerator_registrar_apptest.cc
diff --git a/mash/wm/accelerator_registrar_apptest.cc b/mash/wm/accelerator_registrar_apptest.cc
index eaccd5b2e5dff94398e280f03c4629ebe4a961a0..0f5a7d9ccc8ba274b8de6e76710744def72d917b 100644
--- a/mash/wm/accelerator_registrar_apptest.cc
+++ b/mash/wm/accelerator_registrar_apptest.cc
@@ -29,9 +29,7 @@ class TestAcceleratorHandler : public AcceleratorHandler {
: binding_(this),
registrar_(std::move(registrar)),
add_accelerator_result_(false) {
- AcceleratorHandlerPtr handler;
- binding_.Bind(GetProxy(&handler));
- registrar_->SetHandler(std::move(handler));
+ registrar_->SetHandler(binding_.CreateInterfacePtrAndBind());
}
~TestAcceleratorHandler() override {}
« no previous file with comments | « mash/shelf/shelf_view.cc ('k') | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698