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

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

Issue 2671683002: getInstalledRelatedApps: Add browser-side Mojo service (stub). (Closed)
Patch Set: Remove m_frame and use supplementable(). 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 f74e19a27a75a49ba84ac89963f48479fae5a23b..3780cc0482d1ea31f7e82cd4e1a55586adf8c0b9 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -35,6 +35,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"
@@ -2279,6 +2280,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.
clamy 2017/03/02 13:31:53 nit: add an empty line above.
Matt Giuca 2017/03/10 03:35:47 Done.
+ // TODO(mgiuca): Implement the "real" one for Android in Java, and do not add
+ // the default one on that platform.
+ GetInterfaceRegistry()->AddInterface(
+ 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