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

Unified Diff: examples/apptest/example_service_application.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 | « no previous file | examples/audio_play_test/play_tone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/apptest/example_service_application.cc
diff --git a/examples/apptest/example_service_application.cc b/examples/apptest/example_service_application.cc
index e1ef72f09f9622e86dd7a78eff45467489c7ad1d..9efcebaf408b92180dbd60b8ca4ba8fde2b68ce1 100644
--- a/examples/apptest/example_service_application.cc
+++ b/examples/apptest/example_service_application.cc
@@ -4,6 +4,8 @@
#include "examples/apptest/example_service_application.h"
+#include <memory>
+
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_runner.h"
@@ -30,6 +32,8 @@ void ExampleServiceApplication::Create(
} // namespace mojo
MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunner runner(new mojo::ExampleServiceApplication());
+ mojo::ApplicationRunner runner(
+ std::unique_ptr<mojo::ExampleServiceApplication>(
+ new mojo::ExampleServiceApplication()));
return runner.Run(application_request);
}
« no previous file with comments | « no previous file | examples/audio_play_test/play_tone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698