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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2787703002: Add mojo service for CopylessPaste in Blink (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 9c925b2e5566093604c6d68803ce8276a347fc60..a4296af4b60fc019992144935c3dc7df655d9d95 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -159,6 +159,7 @@
#include "core/timing/DOMWindowPerformance.h"
#include "core/timing/Performance.h"
#include "modules/app_banner/AppBannerController.h"
+#include "modules/document_metadata/CopylessPasteServer.h"
#include "modules/installation/InstallationServiceImpl.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/UserGestureIndicator.h"
@@ -1636,6 +1637,9 @@ void WebLocalFrameImpl::initializeCoreFrame(Page& page,
frame()->interfaceRegistry()->addInterface(WTF::bind(
&InstallationServiceImpl::create, wrapWeakPersistent(frame())));
+
+ frame()->interfaceRegistry()->addInterface(WTF::bind(
+ &CopylessPasteServer::bindMojoRequest, wrapWeakPersistent(frame())));
if (!owner) {
// This trace event is needed to detect the main frame of the
// renderer in telemetry metrics. See crbug.com/692112#c11.

Powered by Google App Engine
This is Rietveld 408576698