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

Unified Diff: services/device_info/device_info.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/authentication/dummy_authentication_app.cc ('k') | services/http_server/http_server_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device_info/device_info.cc
diff --git a/services/device_info/device_info.cc b/services/device_info/device_info.cc
index 0dfdfbce93e8aac308f1ff0697adac6680c0e2ba..54fe54c0f649514224f310caf4d717ed3ce6cac3 100644
--- a/services/device_info/device_info.cc
+++ b/services/device_info/device_info.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <cstdlib>
+#include <memory>
#include "mojo/common/binding_set.h"
#include "mojo/public/c/system/main.h"
@@ -51,6 +52,8 @@ class DeviceInfo : public mojo::ApplicationDelegate,
} // namespace mojo
MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunner runner(new mojo::services::device_info::DeviceInfo());
+ mojo::ApplicationRunner runner(
+ std::unique_ptr<mojo::services::device_info::DeviceInfo>(
+ new mojo::services::device_info::DeviceInfo()));
return runner.Run(application_request);
}
« no previous file with comments | « services/authentication/dummy_authentication_app.cc ('k') | services/http_server/http_server_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698