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

Unified Diff: mojo/services/tracing/public/cpp/tracing_impl.cc

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 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 | « mojo/services/tracing/public/cpp/tracing_impl.h ('k') | mojo/services/tracing/tracing_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/tracing/public/cpp/tracing_impl.cc
diff --git a/mojo/services/tracing/public/cpp/tracing_impl.cc b/mojo/services/tracing/public/cpp/tracing_impl.cc
index 2ac27496eca7a048684badc5def0fd6baab2c14b..e7a369c76bbd98aee359b59ea08acdb56beb02e6 100644
--- a/mojo/services/tracing/public/cpp/tracing_impl.cc
+++ b/mojo/services/tracing/public/cpp/tracing_impl.cc
@@ -10,7 +10,7 @@
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
#include "base/trace_event/trace_event_impl.h"
-#include "mojo/shell/public/cpp/shell.h"
+#include "mojo/shell/public/cpp/connector.h"
#ifdef NDEBUG
#include "base/command_line.h"
@@ -41,7 +41,7 @@ TracingImpl::TracingImpl() {
TracingImpl::~TracingImpl() {
}
-void TracingImpl::Initialize(Shell* shell, const std::string& url) {
+void TracingImpl::Initialize(Connector* connector, const std::string& url) {
{
base::AutoLock lock(g_singleton_lock.Get());
if (g_tracing_singleton_created)
@@ -53,7 +53,7 @@ void TracingImpl::Initialize(Shell* shell, const std::string& url) {
// up to something like CoreServices to name its own child threads.
base::PlatformThread::SetName(url);
- connection_ = shell->Connect("mojo:tracing");
+ connection_ = connector->Connect("mojo:tracing");
connection_->AddInterface(this);
#ifdef NDEBUG
« no previous file with comments | « mojo/services/tracing/public/cpp/tracing_impl.h ('k') | mojo/services/tracing/tracing_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698