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

Unified Diff: ash/autoclick/mus/autoclick_application.h

Issue 2795883002: Eliminate OnConnect usage (Closed)
Patch Set: . Created 3 years, 8 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 | « no previous file | ash/autoclick/mus/autoclick_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/autoclick/mus/autoclick_application.h
diff --git a/ash/autoclick/mus/autoclick_application.h b/ash/autoclick/mus/autoclick_application.h
index c5d9599419a4691298a6183b38e1c4fa56f3709c..335c5b43b57e702b0eb8c0d291e61506982ca11a 100644
--- a/ash/autoclick/mus/autoclick_application.h
+++ b/ash/autoclick/mus/autoclick_application.h
@@ -13,8 +13,8 @@
#include "base/macros.h"
#include "mash/public/interfaces/launchable.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
+#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/identity.h"
-#include "services/service_manager/public/cpp/interface_registry.h"
#include "services/service_manager/public/cpp/service.h"
namespace views {
@@ -39,8 +39,9 @@ class AutoclickApplication
private:
// service_manager::Service:
void OnStart() override;
- bool OnConnect(const service_manager::ServiceInfo& remote_info,
- service_manager::InterfaceRegistry* registry) override;
+ void OnBindInterface(const service_manager::ServiceInfo& remote_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) override;
// mojom::Launchable:
void Launch(uint32_t what, mash::mojom::LaunchMode how) override;
@@ -65,6 +66,7 @@ class AutoclickApplication
const int mouse_event_flags) override;
void OnAutoclickCanceled() override;
+ service_manager::BinderRegistry registry_;
mojo::Binding<mash::mojom::Launchable> launchable_binding_;
mojo::Binding<mojom::AutoclickController> autoclick_binding_;
« no previous file with comments | « no previous file | ash/autoclick/mus/autoclick_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698