OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/installedapp/installed_app_provider_impl_default.h" |
| 6 |
| 7 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 InstalledAppProviderImplDefault::InstalledAppProviderImplDefault() {} |
| 12 |
| 13 InstalledAppProviderImplDefault::~InstalledAppProviderImplDefault() {} |
| 14 |
| 15 void InstalledAppProviderImplDefault::FilterInstalledApps( |
| 16 std::vector<blink::mojom::RelatedApplicationPtr> related_apps, |
| 17 const FilterInstalledAppsCallback& callback) { |
| 18 // Do not return any results (in the default implementation, there are no |
| 19 // installed related apps). |
| 20 callback.Run(std::vector<blink::mojom::RelatedApplicationPtr>()); |
| 21 } |
| 22 |
| 23 // static |
| 24 void InstalledAppProviderImplDefault::Create( |
| 25 mojo::InterfaceRequest<blink::mojom::InstalledAppProvider> request) { |
| 26 mojo::MakeStrongBinding(base::MakeUnique<InstalledAppProviderImplDefault>(), |
| 27 std::move(request)); |
| 28 } |
| 29 |
| 30 } // namespace content |
OLD | NEW |