| 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 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 ShellContentUtilityClient::~ShellContentUtilityClient() { | 64 ShellContentUtilityClient::~ShellContentUtilityClient() { |
| 65 } | 65 } |
| 66 | 66 |
| 67 void ShellContentUtilityClient::RegisterMojoApplications( | 67 void ShellContentUtilityClient::RegisterMojoApplications( |
| 68 StaticMojoApplicationMap* apps) { | 68 StaticMojoApplicationMap* apps) { |
| 69 MojoApplicationInfo app_info; | 69 MojoApplicationInfo app_info; |
| 70 app_info.application_factory = base::Bind(&CreateTestApp); | 70 app_info.application_factory = base::Bind(&CreateTestApp); |
| 71 apps->insert(std::make_pair(kTestMojoAppUrl, app_info)); | 71 apps->insert(std::make_pair(kTestMojoAppUrl, app_info)); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void ShellContentUtilityClient::RegisterMojoServices( | 74 void ShellContentUtilityClient::RegisterMojoInterfaces( |
| 75 ServiceRegistry* registry) { | 75 shell::InterfaceRegistry* registry) { |
| 76 registry->AddService(base::Bind(&TestMojoServiceImpl::Create)); | 76 registry->AddInterface(base::Bind(&TestMojoServiceImpl::Create)); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace content | 79 } // namespace content |
| OLD | NEW |