Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / components / clipboard / clipboard_application_delegate.cc
blobad8fec01d4409acd50808b405662cb1d55adec5a
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/clipboard/clipboard_application_delegate.h"
7 #include "components/clipboard/clipboard_standalone_impl.h"
8 #include "mojo/application/public/cpp/application_connection.h"
10 namespace clipboard {
12 ClipboardApplicationDelegate::ClipboardApplicationDelegate() {}
14 ClipboardApplicationDelegate::~ClipboardApplicationDelegate() {}
16 bool ClipboardApplicationDelegate::ConfigureIncomingConnection(
17 mojo::ApplicationConnection* connection) {
18 connection->AddService(this);
19 return true;
22 void ClipboardApplicationDelegate::Create(
23 mojo::ApplicationConnection* connection,
24 mojo::InterfaceRequest<mojo::Clipboard> request) {
25 // TODO(erg): Write native implementations of the clipboard. For now, we
26 // just build a clipboard which doesn't interact with the system.
27 new clipboard::ClipboardStandaloneImpl(request.Pass());
30 } // namespace clipboard