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

Unified Diff: examples/content_handler_demo/content_handler_demo.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/bank_app/customer.cc ('k') | examples/echo/echo_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/content_handler_demo/content_handler_demo.cc
diff --git a/examples/content_handler_demo/content_handler_demo.cc b/examples/content_handler_demo/content_handler_demo.cc
index df44a5c61ec9ce856e55e18d7a51e0312d858b27..aa6012dd8b7c66b513a8e9aa80616efc6a93ac8c 100644
--- a/examples/content_handler_demo/content_handler_demo.cc
+++ b/examples/content_handler_demo/content_handler_demo.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"
@@ -116,6 +118,8 @@ class ContentHandlerApp : public ApplicationDelegate,
} // namespace mojo
MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunner runner(new mojo::examples::ContentHandlerApp);
+ mojo::ApplicationRunner runner(
+ std::unique_ptr<mojo::examples::ContentHandlerApp>(
+ new mojo::examples::ContentHandlerApp()));
return runner.Run(application_request);
}
« no previous file with comments | « examples/bank_app/customer.cc ('k') | examples/echo/echo_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698