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

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

Issue 1880003002: Added browser-side service for navigator.actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ballista-share-requester-mojo-blink
Patch Set: Only add ShareService if experimental flag is on. Created 4 years, 5 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/webshare/share_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fadeeca42041cb03120150ffe39978fa7c35804d..20b13e97e6ae2c51577af1ee20c45ecc8d27ce3a 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -51,6 +51,7 @@
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
#include "content/browser/wake_lock/wake_lock_service_context.h"
+#include "content/browser/webshare/share_service_impl.h"
#include "content/browser/webui/web_ui_controller_factory_registry.h"
#include "content/common/accessibility_messages.h"
#include "content/common/frame_messages.h"
@@ -2057,6 +2058,12 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
base::Unretained(this)));
}
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableExperimentalWebPlatformFeatures)) {
+ GetInterfaceRegistry()->AddInterface(base::Bind(
+ &ShareServiceImpl::Create, GetProcess()->GetBrowserContext()));
+ }
+
if (!frame_mojo_shell_)
frame_mojo_shell_.reset(new FrameMojoShell(this));
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/webshare/share_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698