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

Unified Diff: shell/context.cc

Issue 1284293003: Rename tracing interfaces. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/tracing_app.cc ('k') | shell/tracer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/context.cc
diff --git a/shell/context.cc b/shell/context.cc
index a9d558782f1187225c19b4611708c89331816044..aeb2d05c2bb38add7bb86f5d8c8665373226107a 100644
--- a/shell/context.cc
+++ b/shell/context.cc
@@ -21,7 +21,7 @@
#include "base/strings/string_util.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
-#include "mojo/common/trace_controller_impl.h"
+#include "mojo/common/trace_provider_impl.h"
#include "mojo/common/tracing_impl.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/embedder/simple_platform_support.h"
@@ -193,9 +193,9 @@ class TracingServiceProvider : public ServiceProvider {
void ConnectToService(const mojo::String& service_name,
mojo::ScopedMessagePipeHandle client_handle) override {
- if (tracer_ && service_name == tracing::TraceController::Name_) {
- tracer_->ConnectToController(
- mojo::MakeRequest<tracing::TraceController>(client_handle.Pass()));
+ if (tracer_ && service_name == tracing::TraceProvider::Name_) {
+ tracer_->ConnectToProvider(
+ mojo::MakeRequest<tracing::TraceProvider>(client_handle.Pass()));
}
}
@@ -312,9 +312,9 @@ bool Context::InitWithPaths(const base::FilePath& shell_child_path) {
if (command_line.HasSwitch(switches::kTraceStartup)) {
DCHECK(tracer_);
- tracing::TraceCoordinatorPtr coordinator;
+ tracing::TraceCollectorPtr coordinator;
auto coordinator_request = GetProxy(&coordinator);
- tracing_services->ConnectToService(tracing::TraceCoordinator::Name_,
+ tracing_services->ConnectToService(tracing::TraceCollector::Name_,
coordinator_request.PassMessagePipe());
tracer_->StartCollectingFromTracingService(coordinator.Pass());
}
« no previous file with comments | « services/tracing/tracing_app.cc ('k') | shell/tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698