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

Unified Diff: mash/quick_launch/quick_launch.h

Issue 2646193002: Replace OnConnect with OnBindInterface in //mash. (Closed)
Patch Set: . Created 3 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/example/window_type_launcher/window_type_launcher.cc ('k') | mash/quick_launch/quick_launch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/quick_launch/quick_launch.h
diff --git a/mash/quick_launch/quick_launch.h b/mash/quick_launch/quick_launch.h
index 8e99b041f933d3675703806678885a55fcef305e..0a42717ee0c64b46fac626cd760e310cc3f2065b 100644
--- a/mash/quick_launch/quick_launch.h
+++ b/mash/quick_launch/quick_launch.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "mash/public/interfaces/launchable.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
+#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/interface_factory.h"
#include "services/service_manager/public/cpp/service.h"
#include "services/tracing/public/cpp/provider.h"
@@ -35,8 +36,9 @@ class QuickLaunch
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& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) override;
// ::mash::mojom::Launchable:
void Launch(uint32_t what, ::mash::mojom::LaunchMode how) override;
@@ -48,6 +50,8 @@ class QuickLaunch
mojo::BindingSet<::mash::mojom::Launchable> bindings_;
std::vector<views::Widget*> windows_;
+ service_manager::BinderRegistry registry_;
+
tracing::Provider tracing_;
std::unique_ptr<views::AuraInit> aura_init_;
« no previous file with comments | « mash/example/window_type_launcher/window_type_launcher.cc ('k') | mash/quick_launch/quick_launch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698