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

Unified Diff: ipc/ipc_channel_factory.cc

Issue 1354973006: ipc: Remove unnecessary attachment broker plumbing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Created 5 years, 3 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
« no previous file with comments | « ipc/ipc_channel_factory.h ('k') | ipc/ipc_channel_nacl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_factory.cc
diff --git a/ipc/ipc_channel_factory.cc b/ipc/ipc_channel_factory.cc
index ac050855cfcf37fe7ce679aaf1a21c6eb0835eb9..78cd3633a54311703a2ce7eb5238e1cde2df33da 100644
--- a/ipc/ipc_channel_factory.cc
+++ b/ipc/ipc_channel_factory.cc
@@ -10,23 +10,20 @@ namespace {
class PlatformChannelFactory : public ChannelFactory {
public:
- PlatformChannelFactory(ChannelHandle handle,
- Channel::Mode mode,
- AttachmentBroker* broker)
- : handle_(handle), mode_(mode), broker_(broker) {}
+ PlatformChannelFactory(ChannelHandle handle, Channel::Mode mode)
+ : handle_(handle), mode_(mode) {}
std::string GetName() const override {
return handle_.name;
}
scoped_ptr<Channel> BuildChannel(Listener* listener) override {
- return Channel::Create(handle_, mode_, listener, broker_);
+ return Channel::Create(handle_, mode_, listener);
}
private:
ChannelHandle handle_;
Channel::Mode mode_;
- AttachmentBroker* broker_;
DISALLOW_COPY_AND_ASSIGN(PlatformChannelFactory);
};
@@ -35,10 +32,8 @@ class PlatformChannelFactory : public ChannelFactory {
// static
scoped_ptr<ChannelFactory> ChannelFactory::Create(const ChannelHandle& handle,
- Channel::Mode mode,
- AttachmentBroker* broker) {
- return scoped_ptr<ChannelFactory>(
- new PlatformChannelFactory(handle, mode, broker));
+ Channel::Mode mode) {
+ return scoped_ptr<ChannelFactory>(new PlatformChannelFactory(handle, mode));
}
} // namespace IPC
« no previous file with comments | « ipc/ipc_channel_factory.h ('k') | ipc/ipc_channel_nacl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698