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

Unified Diff: services/service_manager/embedder/main.cc

Issue 2833873003: WIP: The tracing service prototype
Patch Set: sync 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
« no previous file with comments | « services/service_manager/embedder/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/embedder/main.cc
diff --git a/services/service_manager/embedder/main.cc b/services/service_manager/embedder/main.cc
index f976be1ce3cc2a1a9b5d614e29614b2bd06ef742..2722b9eee9c9bbdbafd06c15d830726c174d2179 100644
--- a/services/service_manager/embedder/main.cc
+++ b/services/service_manager/embedder/main.cc
@@ -30,6 +30,7 @@
#include "mojo/edk/embedder/configuration.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/embedder/scoped_ipc_support.h"
+#include "services/resource_coordinator/public/cpp/tracing/chrome_agent.h"
#include "services/service_manager/embedder/main_delegate.h"
#include "services/service_manager/embedder/process_type.h"
#include "services/service_manager/embedder/set_process_title.h"
@@ -317,6 +318,13 @@ int RunService(MainDelegate* delegate) {
ServiceContext context(std::move(service), std::move(request));
context.SetQuitClosure(run_loop.QuitClosure());
+
+ resource_coordinator::tracing::mojom::AgentSetPtr agent_set;
+ context.connector()->BindInterface("tracing",
+ mojo::MakeRequest(&agent_set));
+ resource_coordinator::tracing::ChromeAgent::InitializeIfNeeded(
+ std::move(agent_set));
+
run_loop.Run();
},
delegate, &exit_code));
« no previous file with comments | « services/service_manager/embedder/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698