Chromium Code Reviews

Unified Diff: mojo/public/cpp/bindings/tests/versioning_test_service.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.
Jump to:
View side-by-side diff with in-line comments
Index: mojo/public/cpp/bindings/tests/versioning_test_service.cc
diff --git a/mojo/public/cpp/bindings/tests/versioning_test_service.cc b/mojo/public/cpp/bindings/tests/versioning_test_service.cc
index 0896b8c42b1ef4ebd6d6c44d11a855defbe20258..419fa3a6878d6a2c4e3763aea814346e8f03d612 100644
--- a/mojo/public/cpp/bindings/tests/versioning_test_service.cc
+++ b/mojo/public/cpp/bindings/tests/versioning_test_service.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <map>
+#include <memory>
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_connection.h"
@@ -119,7 +120,8 @@ class HumanResourceSystemServer
MojoResult MojoMain(MojoHandle application_request) {
mojo::ApplicationRunner runner(
- new mojo::test::versioning::HumanResourceSystemServer());
+ std::unique_ptr<mojo::test::versioning::HumanResourceSystemServer>(
+ new mojo::test::versioning::HumanResourceSystemServer()));
return runner.Run(application_request);
}
« no previous file with comments | « mojo/public/cpp/application/lib/application_runner.cc ('k') | services/authentication/dummy_authentication_app.cc » ('j') | no next file with comments »

Powered by Google App Engine