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

Unified Diff: mojo/services/tracing/tracing_app.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
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.cc ('k') | mojo/shell/application_manager_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/tracing/tracing_app.cc
diff --git a/mojo/services/tracing/tracing_app.cc b/mojo/services/tracing/tracing_app.cc
index 09d1f3b74f671ab8614b575ccecf4d555371f565..974ce0d6c38da69dc13d4a84c1b2557d171e8e7f 100644
--- a/mojo/services/tracing/tracing_app.cc
+++ b/mojo/services/tracing/tracing_app.cc
@@ -22,8 +22,8 @@ TracingApp::~TracingApp() {
}
bool TracingApp::AcceptConnection(mojo::Connection* connection) {
- connection->AddService<TraceCollector>(this);
- connection->AddService<StartupPerformanceDataCollector>(this);
+ connection->AddInterface<TraceCollector>(this);
+ connection->AddInterface<StartupPerformanceDataCollector>(this);
// If someone connects to us they may want to use the TraceCollector
// interface and/or they may want to expose themselves to be traced. Attempt
@@ -31,7 +31,7 @@ bool TracingApp::AcceptConnection(mojo::Connection* connection) {
// connecting to us wants to be traced. They can refuse the connection or
// close the pipe if not.
TraceProviderPtr provider_ptr;
- connection->ConnectToService(&provider_ptr);
+ connection->GetInterface(&provider_ptr);
if (tracing_active_) {
TraceRecorderPtr recorder_ptr;
recorder_impls_.push_back(
« no previous file with comments | « mojo/services/tracing/public/cpp/tracing_impl.cc ('k') | mojo/shell/application_manager_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698