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

Unified Diff: media/test/pipeline_integration_test.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 | « media/mojo/services/media_apptest.cc ('k') | mojo/application/public/cpp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/pipeline_integration_test.cc
diff --git a/media/test/pipeline_integration_test.cc b/media/test/pipeline_integration_test.cc
index b62b5cb8832ecd450b73737c15b5cfb3b9a179d3..b19b32c18e5f87292c6c645f1cb8cc495eccc916 100644
--- a/media/test/pipeline_integration_test.cc
+++ b/media/test/pipeline_integration_test.cc
@@ -645,14 +645,7 @@ class PipelineIntegrationTestHost : public mojo::test::ApplicationTestBase,
protected:
scoped_ptr<Renderer> CreateRenderer() override {
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:media");
- mojo::ServiceProvider* service_provider =
- application_impl()
- ->ConnectToApplication(request.Pass())
- ->GetServiceProvider();
-
- mojo::ConnectToService(service_provider, &media_service_factory_);
+ application_impl()->ConnectToService("mojo:media", &media_service_factory_);
interfaces::RendererPtr mojo_renderer;
media_service_factory_->CreateRenderer(mojo::GetProxy(&mojo_renderer));
« no previous file with comments | « media/mojo/services/media_apptest.cc ('k') | mojo/application/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698