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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698