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

Unified Diff: examples/wget/wget.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/spinning_cube/spinning_cube_app.cc ('k') | mojo/public/cpp/application/application_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/wget/wget.cc
diff --git a/examples/wget/wget.cc b/examples/wget/wget.cc
index 575d8cb2ba851348c9262f81c41c98192fd1cabf..32257b416484b728757b62140d900296c16d5ba8 100644
--- a/examples/wget/wget.cc
+++ b/examples/wget/wget.cc
@@ -4,6 +4,8 @@
#include <stdio.h>
+#include <memory>
+
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_impl.h"
@@ -109,6 +111,7 @@ class WGetApp : public ApplicationDelegate {
} // namespace mojo
MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunner runner(new mojo::examples::WGetApp);
+ mojo::ApplicationRunner runner(
+ std::unique_ptr<mojo::examples::WGetApp>(new mojo::examples::WGetApp()));
return runner.Run(application_request);
}
« no previous file with comments | « examples/spinning_cube/spinning_cube_app.cc ('k') | mojo/public/cpp/application/application_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698