OLD | NEW |
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 "content/shell/utility/shell_content_utility_client.h" | 5 #include "content/shell/utility/shell_content_utility_client.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "content/common/mojo/static_loader.h" | |
11 #include "content/public/test/test_mojo_app.h" | 10 #include "content/public/test/test_mojo_app.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 | 13 |
15 namespace { | 14 namespace { |
16 | 15 |
17 std::unique_ptr<shell::ShellClient> CreateTestApp() { | 16 std::unique_ptr<shell::ShellClient> CreateTestApp() { |
18 return std::unique_ptr<shell::ShellClient>(new TestMojoApp); | 17 return std::unique_ptr<shell::ShellClient>(new TestMojoApp); |
19 } | 18 } |
20 | 19 |
21 } // namespace | 20 } // namespace |
22 | 21 |
23 ShellContentUtilityClient::~ShellContentUtilityClient() { | 22 ShellContentUtilityClient::~ShellContentUtilityClient() { |
24 } | 23 } |
25 | 24 |
26 void ShellContentUtilityClient::RegisterMojoApplications( | 25 void ShellContentUtilityClient::RegisterMojoApplications( |
27 StaticMojoApplicationMap* apps) { | 26 StaticMojoApplicationMap* apps) { |
28 apps->insert(std::make_pair(kTestMojoAppUrl, base::Bind(&CreateTestApp))); | 27 apps->insert(std::make_pair(kTestMojoAppUrl, base::Bind(&CreateTestApp))); |
29 } | 28 } |
30 | 29 |
31 } // namespace content | 30 } // namespace content |
OLD | NEW |