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

Unified Diff: examples/audio_play_test/play_wav.cc

Issue 1517743003: Make ApplicationRunner's ctor's ApplicationDelegate* argument an std::unique_ptr instead. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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 | « examples/audio_play_test/play_tone.cc ('k') | examples/bank_app/bank.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/audio_play_test/play_wav.cc
diff --git a/examples/audio_play_test/play_wav.cc b/examples/audio_play_test/play_wav.cc
index d4706b02c6ae74464e954831d0b4f0d6b6c4349b..3cc1ce6828a96e693a59a1da5da807365c2c076f 100644
--- a/examples/audio_play_test/play_wav.cc
+++ b/examples/audio_play_test/play_wav.cc
@@ -563,6 +563,8 @@ void PlayWAVApp::BeginShutdown() {
} // namespace mojo
MojoResult MojoMain(MojoHandle app_request) {
- mojo::ApplicationRunner runner(new mojo::media::audio::examples::PlayWAVApp);
+ mojo::ApplicationRunner runner(
+ std::unique_ptr<mojo::media::audio::examples::PlayWAVApp>(
+ new mojo::media::audio::examples::PlayWAVApp()));
return runner.Run(app_request);
}
« no previous file with comments | « examples/audio_play_test/play_tone.cc ('k') | examples/bank_app/bank.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698