| Index: ipc/ipc_channel_factory.cc
|
| diff --git a/ipc/ipc_channel_factory.cc b/ipc/ipc_channel_factory.cc
|
| index c8431c091c8ba87b13f8f5d08caac3f28fd47a03..ac050855cfcf37fe7ce679aaf1a21c6eb0835eb9 100644
|
| --- a/ipc/ipc_channel_factory.cc
|
| +++ b/ipc/ipc_channel_factory.cc
|
| @@ -11,21 +11,22 @@ namespace {
|
| class PlatformChannelFactory : public ChannelFactory {
|
| public:
|
| PlatformChannelFactory(ChannelHandle handle,
|
| - Channel::Mode mode)
|
| - : handle_(handle), mode_(mode) {
|
| - }
|
| + Channel::Mode mode,
|
| + AttachmentBroker* broker)
|
| + : handle_(handle), mode_(mode), broker_(broker) {}
|
|
|
| std::string GetName() const override {
|
| return handle_.name;
|
| }
|
|
|
| scoped_ptr<Channel> BuildChannel(Listener* listener) override {
|
| - return Channel::Create(handle_, mode_, listener);
|
| + return Channel::Create(handle_, mode_, listener, broker_);
|
| }
|
|
|
| private:
|
| ChannelHandle handle_;
|
| Channel::Mode mode_;
|
| + AttachmentBroker* broker_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(PlatformChannelFactory);
|
| };
|
| @@ -33,9 +34,11 @@ class PlatformChannelFactory : public ChannelFactory {
|
| } // namespace
|
|
|
| // static
|
| -scoped_ptr<ChannelFactory> ChannelFactory::Create(
|
| - const ChannelHandle& handle, Channel::Mode mode) {
|
| - return scoped_ptr<ChannelFactory>(new PlatformChannelFactory(handle, mode));
|
| +scoped_ptr<ChannelFactory> ChannelFactory::Create(const ChannelHandle& handle,
|
| + Channel::Mode mode,
|
| + AttachmentBroker* broker) {
|
| + return scoped_ptr<ChannelFactory>(
|
| + new PlatformChannelFactory(handle, mode, broker));
|
| }
|
|
|
| } // namespace IPC
|
|
|