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

Unified Diff: components/html_viewer/stats_collection_controller.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
Index: components/html_viewer/stats_collection_controller.cc
diff --git a/components/html_viewer/stats_collection_controller.cc b/components/html_viewer/stats_collection_controller.cc
index 965c317e79b36e31eff3a0cb73b6a767ee6a8e06..24cdd3935c57165c86914b0c9b89d80566e54590 100644
--- a/components/html_viewer/stats_collection_controller.cc
+++ b/components/html_viewer/stats_collection_controller.cc
@@ -79,10 +79,8 @@ tracing::StartupPerformanceDataCollectorPtr StatsCollectionController::Install(
v8::Context::Scope context_scope(context);
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:tracing");
scoped_ptr<mojo::ApplicationConnection> connection =
- app->ConnectToApplication(request.Pass());
+ app->ConnectToApplication("mojo:tracing");
if (!connection)
return nullptr;
tracing::StartupPerformanceDataCollectorPtr collector_for_controller;
@@ -109,10 +107,8 @@ StatsCollectionController::ConnectToDataCollector(mojo::ApplicationImpl* app) {
return nullptr;
}
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:tracing");
tracing::StartupPerformanceDataCollectorPtr collector;
- app->ConnectToService(request.Pass(), &collector);
+ app->ConnectToService("mojo:tracing", &collector);
return collector.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698