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); |
} |