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

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 self to OWNERS. 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> relatedApps,
17 const std::string& origin,
18 const FilterInstalledAppsCallback& callback) {
19 // Do not return any results (in the default implementation, there are no
20 // installed related apps).
21 callback.Run(std::vector<blink::mojom::RelatedApplicationPtr>());
22 }
23
24 // static
25 void InstalledAppProviderImplDefault::Create(
26 mojo::InterfaceRequest<blink::mojom::InstalledAppProvider> request) {
27 mojo::MakeStrongBinding(base::MakeUnique<InstalledAppProviderImplDefault>(),
28 std::move(request));
29 }
30
31 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698