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

Unified Diff: examples/media_test/media_test.cc

Issue 2015643002: Add (optional) options to Run[Main]Application(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 7 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
Index: examples/media_test/media_test.cc
diff --git a/examples/media_test/media_test.cc b/examples/media_test/media_test.cc
index 5d760040037d167107baab5c997b05b8cad7560d..d8f0858dbb83915588d9b90e02adeba1a12d6b1b 100644
--- a/examples/media_test/media_test.cc
+++ b/examples/media_test/media_test.cc
@@ -14,15 +14,14 @@ namespace examples {
// static
std::unique_ptr<MediaTest> MediaTest::Create(
- mojo::ApplicationImpl* app,
+ mojo::Shell* shell,
const std::string& input_file_name) {
- return std::unique_ptr<MediaTest>(new MediaTest(app, input_file_name));
+ return std::unique_ptr<MediaTest>(new MediaTest(shell, input_file_name));
}
-MediaTest::MediaTest(mojo::ApplicationImpl* app,
- const std::string& input_file_name) {
+MediaTest::MediaTest(mojo::Shell* shell, const std::string& input_file_name) {
MediaFactoryPtr factory;
- ConnectToService(app->shell(), "mojo:media_factory", GetProxy(&factory));
+ ConnectToService(shell, "mojo:media_factory", GetProxy(&factory));
SeekingReaderPtr reader;
factory->CreateNetworkReader(input_file_name, GetProxy(&reader));

Powered by Google App Engine
This is Rietveld 408576698