| Index: content/common/child_process_host_impl.cc
|
| diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
|
| index d69d5352a285f8a16065536a3f3708fc23f494e9..5c6e92fe87de0f52f81d94900ddf1521120d7fbc 100644
|
| --- a/content/common/child_process_host_impl.cc
|
| +++ b/content/common/child_process_host_impl.cc
|
| @@ -132,12 +132,17 @@ void ChildProcessHostImpl::ForceShutdown() {
|
| std::string ChildProcessHostImpl::CreateChannel() {
|
| channel_id_ = IPC::Channel::GenerateVerifiedChannelID(std::string());
|
| channel_ = IPC::Channel::CreateServer(channel_id_, this);
|
| - if (!channel_->Connect())
|
| - return std::string();
|
| #if USE_ATTACHMENT_BROKER
|
| IPC::AttachmentBroker::GetGlobal()->RegisterCommunicationChannel(
|
| channel_.get());
|
| #endif
|
| + if (!channel_->Connect()) {
|
| +#if USE_ATTACHMENT_BROKER
|
| + IPC::AttachmentBroker::GetGlobal()->DeregisterCommunicationChannel(
|
| + channel_.get());
|
| +#endif
|
| + return std::string();
|
| + }
|
|
|
| for (size_t i = 0; i < filters_.size(); ++i)
|
| filters_[i]->OnFilterAdded(channel_.get());
|
|
|