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

Side by Side Diff: services/authentication/dummy_authentication_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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <memory>
6
5 #include "mojo/common/binding_set.h" 7 #include "mojo/common/binding_set.h"
6 #include "mojo/public/c/system/main.h" 8 #include "mojo/public/c/system/main.h"
7 #include "mojo/public/cpp/application/application_connection.h" 9 #include "mojo/public/cpp/application/application_connection.h"
8 #include "mojo/public/cpp/application/application_delegate.h" 10 #include "mojo/public/cpp/application/application_delegate.h"
9 #include "mojo/public/cpp/application/application_runner.h" 11 #include "mojo/public/cpp/application/application_runner.h"
10 #include "mojo/public/cpp/application/interface_factory.h" 12 #include "mojo/public/cpp/application/interface_factory.h"
11 #include "mojo/public/cpp/system/macros.h" 13 #include "mojo/public/cpp/system/macros.h"
12 #include "mojo/services/authentication/interfaces/authentication.mojom.h" 14 #include "mojo/services/authentication/interfaces/authentication.mojom.h"
13 15
14 namespace authentication { 16 namespace authentication {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void ClearOAuth2Token(const mojo::String& token) override {} 52 void ClearOAuth2Token(const mojo::String& token) override {}
51 53
52 mojo::BindingSet<AuthenticationService> bindings_; 54 mojo::BindingSet<AuthenticationService> bindings_;
53 }; 55 };
54 56
55 } // namespace 57 } // namespace
56 } // namespace authentication 58 } // namespace authentication
57 59
58 MojoResult MojoMain(MojoHandle application_request) { 60 MojoResult MojoMain(MojoHandle application_request) {
59 mojo::ApplicationRunner runner( 61 mojo::ApplicationRunner runner(
60 new authentication::DummyAuthenticationApplication); 62 std::unique_ptr<authentication::DummyAuthenticationApplication>(
63 new authentication::DummyAuthenticationApplication()));
61 return runner.Run(application_request); 64 return runner.Run(application_request);
62 } 65 }
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/versioning_test_service.cc ('k') | services/device_info/device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698