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

Unified Diff: third_party/WebKit/Source/modules/ModulesInitializer.cpp

Issue 2787703002: Add mojo service for CopylessPaste in Blink (Closed)
Patch Set: rebase across https://codereview.chromium.org/2783543004 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/modules/ModulesInitializer.cpp
diff --git a/third_party/WebKit/Source/modules/ModulesInitializer.cpp b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
index 05567be42fef8daa534100dfc63b021aa72f09c0..568a76cb5efdc0acb347db46fba309613b5540a3 100644
--- a/third_party/WebKit/Source/modules/ModulesInitializer.cpp
+++ b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
@@ -20,6 +20,7 @@
#include "modules/canvas2d/CanvasRenderingContext2D.h"
#include "modules/compositorworker/CompositorWorkerThread.h"
#include "modules/csspaint/CSSPaintImageGeneratorImpl.h"
+#include "modules/document_metadata/CopylessPasteServer.h"
#include "modules/filesystem/DraggedIsolatedFileSystemImpl.h"
#include "modules/imagebitmap/ImageBitmapRenderingContext.h"
#include "modules/installation/InstallationServiceImpl.h"
@@ -81,6 +82,8 @@ void ModulesInitializer::initialize() {
// Mojo Interfaces registered with LocalFrame
LocalFrame::registerInitializationCallback([](LocalFrame* frame) {
+ frame->interfaceRegistry()->addInterface(WTF::bind(
+ &CopylessPasteServer::bindMojoRequest, wrapWeakPersistent(frame)));
frame->interfaceRegistry()->addInterface(
WTF::bind(&InstallationServiceImpl::create, wrapWeakPersistent(frame)));
// TODO(dominickn): This interface should be document-scoped rather than

Powered by Google App Engine
This is Rietveld 408576698