| Index: content/common/installedapp/installed_app_provider_impl_default.cc
|
| diff --git a/content/common/installedapp/installed_app_provider_impl_default.cc b/content/common/installedapp/installed_app_provider_impl_default.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dc0b63d92f1cab1666aa4014c26b630fa559f7a0
|
| --- /dev/null
|
| +++ b/content/common/installedapp/installed_app_provider_impl_default.cc
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/common/installedapp/installed_app_provider_impl.h"
|
| +
|
| +#include "base/strings/utf_string_conversions.h"
|
| +#include "content/common/installedapp/related_application.mojom.h"
|
| +#include "mojo/public/cpp/bindings/array.h"
|
| +#include "mojo/public/cpp/bindings/strong_binding.h"
|
| +
|
| +namespace content {
|
| +
|
| +namespace {
|
| +
|
| +class InstalledAppProviderEmptyImpl : public InstalledAppProvider {
|
| + public:
|
| + void FilterInstalledApps(
|
| + mojo::Array<RelatedApplicationPtr> apps,
|
| + const mojo::String& origin,
|
| + const FilterInstalledAppsCallback& callback) override {
|
| + callback.Run(mojo::Array<content::RelatedApplicationPtr>());
|
| + };
|
| +
|
| + private:
|
| + friend InstalledAppProviderImpl;
|
| +
|
| + InstalledAppProviderEmptyImpl(
|
| + mojo::InterfaceRequest<InstalledAppProvider> request)
|
| + : binding_(this, std::move(request)) {}
|
| + ~InstalledAppProviderEmptyImpl() override {}
|
| +
|
| + // The binding between this object and the other end of the pipe.
|
| + mojo::StrongBinding<InstalledAppProvider> binding_;
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +// static
|
| +void InstalledAppProviderImpl::Create(
|
| + mojo::InterfaceRequest<InstalledAppProvider> request) {
|
| + new InstalledAppProviderEmptyImpl(std::move(request));
|
| +}
|
| +} // namespace content
|
|
|