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

Unified Diff: services/tracing/service.cc

Issue 2215133002: Change signature of OnConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: . Created 4 years, 4 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 | « services/tracing/service.h ('k') | services/ui/demo/mus_demo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/tracing/service.cc
diff --git a/services/tracing/service.cc b/services/tracing/service.cc
index 5cf938c40f5b23efdae218350c35119bcb5dfa9f..2d61ff4263dc4a475fc3d3fbd37c2c1611e879d6 100644
--- a/services/tracing/service.cc
+++ b/services/tracing/service.cc
@@ -12,16 +12,18 @@
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
+#include "services/shell/public/cpp/interface_registry.h"
namespace tracing {
Service::Service() : collector_binding_(this), tracing_active_(false) {}
Service::~Service() {}
-bool Service::OnConnect(shell::Connection* connection) {
- connection->AddInterface<mojom::Factory>(this);
- connection->AddInterface<mojom::Collector>(this);
- connection->AddInterface<mojom::StartupPerformanceDataCollector>(this);
+bool Service::OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry) {
+ registry->AddInterface<mojom::Factory>(this);
+ registry->AddInterface<mojom::Collector>(this);
+ registry->AddInterface<mojom::StartupPerformanceDataCollector>(this);
return true;
}
« no previous file with comments | « services/tracing/service.h ('k') | services/ui/demo/mus_demo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698