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

Unified Diff: shell/test/pingable_app.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 | « services/test_service/test_service_application.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/test/pingable_app.cc
diff --git a/shell/test/pingable_app.cc b/shell/test/pingable_app.cc
index fe49993a8ef6844b1e44a1424a2359a403e6a52c..f65b6826d7439c19be22bf403b75c63440d20ed3 100644
--- a/shell/test/pingable_app.cc
+++ b/shell/test/pingable_app.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#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"
@@ -65,6 +67,7 @@ class PingableApp : public mojo::ApplicationDelegate,
};
MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunner runner(new PingableApp);
+ mojo::ApplicationRunner runner(
+ std::unique_ptr<PingableApp>(new PingableApp()));
return runner.Run(application_request);
}
« no previous file with comments | « services/test_service/test_service_application.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698