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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2671683002: getInstalledRelatedApps: Add browser-side Mojo service (stub). (Closed)
Patch Set: Added self to OWNERS. Created 3 years, 10 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/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index e6eb050896fbef0b0b43002ca613443e912bf69d..b902eea62077e0a208bf3482e9bd2bade2c441f7 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -37,6 +37,7 @@
#include "content/browser/frame_host/render_frame_host_delegate.h"
#include "content/browser/frame_host/render_frame_proxy_host.h"
#include "content/browser/frame_host/render_widget_host_view_child_frame.h"
+#include "content/browser/installedapp/installed_app_provider_impl_default.h"
#include "content/browser/loader/resource_dispatcher_host_impl.h"
#include "content/browser/media/media_interface_proxy.h"
#include "content/browser/media/session/media_session_service_impl.h"
@@ -2307,6 +2308,12 @@ void RenderFrameHostImpl::OnShowCreatedWindow(int pending_widget_routing_id,
void RenderFrameHostImpl::RegisterMojoInterfaces() {
device::GeolocationServiceContext* geolocation_service_context =
delegate_ ? delegate_->GetGeolocationServiceContext() : NULL;
+ // The default (no-op) implementation of InstalledAppProvider.
+ // TODO(mgiuca): Implement the "real" one for Android in Java, and do not add
+ // the default one on that platform.
+ GetInterfaceRegistry()->AddInterface(
clamy 2017/02/27 14:49:27 Do we envision the InstalledAppProvider to be used
Matt Giuca 2017/02/27 22:51:15 We might do it on desktop in the future but no imm
clamy 2017/03/02 13:31:53 Acknowledged.
+ base::Bind(&InstalledAppProviderImplDefault::Create));
+
if (geolocation_service_context) {
// TODO(creis): Bind process ID here so that GeolocationServiceImpl
// can perform permissions checks once site isolation is complete.

Powered by Google App Engine
This is Rietveld 408576698