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

Unified Diff: content/browser/installedapp/installed_app_provider_impl_default.cc

Issue 2671683002: getInstalledRelatedApps: Add browser-side Mojo service (stub). (Closed)
Patch Set: Added TODO. Created 3 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/installedapp/installed_app_provider_impl_default.cc
diff --git a/content/browser/installedapp/installed_app_provider_impl_default.cc b/content/browser/installedapp/installed_app_provider_impl_default.cc
new file mode 100644
index 0000000000000000000000000000000000000000..10e512a4024fe891c5661937da11ec1a364a0bab
--- /dev/null
+++ b/content/browser/installedapp/installed_app_provider_impl_default.cc
@@ -0,0 +1,30 @@
+// Copyright 2017 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/browser/installedapp/installed_app_provider_impl_default.h"
+
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+namespace content {
+
+InstalledAppProviderImplDefault::InstalledAppProviderImplDefault() {}
+
+InstalledAppProviderImplDefault::~InstalledAppProviderImplDefault() {}
+
+void InstalledAppProviderImplDefault::FilterInstalledApps(
+ std::vector<blink::mojom::RelatedApplicationPtr> related_apps,
+ const FilterInstalledAppsCallback& callback) {
+ // Do not return any results (in the default implementation, there are no
+ // installed related apps).
+ callback.Run(std::vector<blink::mojom::RelatedApplicationPtr>());
+}
+
+// static
+void InstalledAppProviderImplDefault::Create(
+ mojo::InterfaceRequest<blink::mojom::InstalledAppProvider> request) {
+ mojo::MakeStrongBinding(base::MakeUnique<InstalledAppProviderImplDefault>(),
+ std::move(request));
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698