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

Unified Diff: examples/bank_app/customer.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/bank.cc ('k') | examples/content_handler_demo/content_handler_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/bank_app/customer.cc
diff --git a/examples/bank_app/customer.cc b/examples/bank_app/customer.cc
index b312d7dc795844a0d19b0e7b77859b08084b4ff5..a572de0a70b48aca5bd13d0b9e6eaabe6948e250 100644
--- a/examples/bank_app/customer.cc
+++ b/examples/bank_app/customer.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stdio.h>
+#include <memory>
#include "examples/bank_app/bank.mojom.h"
#include "mojo/public/c/system/main.h"
@@ -54,6 +54,7 @@ class BankCustomer : public mojo::ApplicationDelegate {
} // namespace examples
MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunner runner(new examples::BankCustomer);
+ mojo::ApplicationRunner runner(
+ std::unique_ptr<examples::BankCustomer>(new examples::BankCustomer()));
return runner.Run(application_request);
}
« no previous file with comments | « examples/bank_app/bank.cc ('k') | examples/content_handler_demo/content_handler_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698