From ea7d96f31cd0cdef3e0e0926744fe672d35537a0 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Tue, 21 Jul 2009 16:40:17 +0000 Subject: Fix single process mode and the unit_tests on Linux. argh, this used to work in my previous change but it must have regressed before checkin. Review URL: http://codereview.chromium.org/155846 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21180 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/child_thread.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chrome/common/child_thread.h') diff --git a/chrome/common/child_thread.h b/chrome/common/child_thread.h index 86eae4c..a7074c7 100644 --- a/chrome/common/child_thread.h +++ b/chrome/common/child_thread.h @@ -19,6 +19,8 @@ class ChildThread : public IPC::Channel::Listener, public: // Creates the thread. ChildThread(); + // Used for single-process mode. + ChildThread(const std::string channel_name); virtual ~ChildThread(); // IPC::Message::Sender implementation: @@ -40,9 +42,6 @@ class ChildThread : public IPC::Channel::Listener, protected: friend class ChildProcess; - // Overrides the channel name. Used for --single-process mode. - void SetChannelName(const std::string& name) { channel_name_ = name; } - // Called when the process refcount is 0. void OnProcessFinalRelease(); @@ -51,6 +50,8 @@ class ChildThread : public IPC::Channel::Listener, IPC::SyncChannel* channel() { return channel_.get(); } private: + void Init(); + // IPC::Channel::Listener implementation: virtual void OnMessageReceived(const IPC::Message& msg); virtual void OnChannelError(); -- cgit v1.1