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

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

Issue 1455833005: Convert ConnectToApplication to take a params class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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/test_service/test_time_service_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/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 1cffe036d16ced3362bb767e527b71410ff80148..eed10f28bb36137935572abbc1f324e0927ef23a 100644
--- a/mojo/services/tracing/public/cpp/tracing_impl.cc
+++ b/mojo/services/tracing/public/cpp/tracing_impl.cc
@@ -51,9 +51,7 @@ void TracingImpl::Initialize(ApplicationImpl* app) {
// up to something like CoreServices to name its own child threads.
base::PlatformThread::SetName(app->url());
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:tracing");
- connection_ = app->ConnectToApplication(request.Pass());
+ connection_ = app->ConnectToApplication("mojo:tracing");
connection_->AddService(this);
#ifdef NDEBUG
« no previous file with comments | « mojo/services/test_service/test_time_service_impl.cc ('k') | mojo/shell/application_manager_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698