Adding UMA for SRT prompt from menu
[chromium-blink-merge.git] / ipc / attachment_broker_unprivileged.cc
blob44125b3b74f76bd60b333569bc93c4cc57265ed5
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 "ipc/attachment_broker_unprivileged.h"
7 #include "ipc/ipc_channel.h"
8 #include "ipc/ipc_endpoint.h"
10 namespace IPC {
12 AttachmentBrokerUnprivileged::AttachmentBrokerUnprivileged()
13 : sender_(nullptr) {}
15 AttachmentBrokerUnprivileged::~AttachmentBrokerUnprivileged() {}
17 void AttachmentBrokerUnprivileged::DesignateBrokerCommunicationChannel(
18 Endpoint* endpoint) {
19 DCHECK(endpoint);
20 DCHECK(!sender_);
21 sender_ = endpoint;
22 endpoint->SetAttachmentBrokerEndpoint(true);
25 } // namespace IPC