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

Side by Side Diff: content/browser/installedapp/installed_app_provider_impl_default.cc

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

Powered by Google App Engine
This is Rietveld 408576698