diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 00:31:36 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 00:31:36 +0000 |
commit | b1f498e33399652b128d9801ad7d96bbeee4ba87 (patch) | |
tree | c6ebb70ec1495990f9f3cd028717b0742b9f4614 /chrome/browser/process_singleton_linux.cc | |
parent | 666b8f577de314cfe3b232345063248878b0150e (diff) | |
download | chromium_src-b1f498e33399652b128d9801ad7d96bbeee4ba87.zip chromium_src-b1f498e33399652b128d9801ad7d96bbeee4ba87.tar.gz chromium_src-b1f498e33399652b128d9801ad7d96bbeee4ba87.tar.bz2 |
Fifth patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/361025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31175 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/process_singleton_linux.cc')
-rw-r--r-- | chrome/browser/process_singleton_linux.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/process_singleton_linux.cc b/chrome/browser/process_singleton_linux.cc index af2a519..046d7f9 100644 --- a/chrome/browser/process_singleton_linux.cc +++ b/chrome/browser/process_singleton_linux.cc @@ -402,10 +402,6 @@ class ProcessSingleton::LinuxWatcher parent_(parent) { } - virtual ~LinuxWatcher() { - STLDeleteElements(&readers_); - } - // Start listening for connections on the socket. This method should be // called from the IO thread. void StartListening(int socket); @@ -430,6 +426,12 @@ class ProcessSingleton::LinuxWatcher } private: + friend class base::RefCountedThreadSafe<ProcessSingleton::LinuxWatcher>; + + virtual ~LinuxWatcher() { + STLDeleteElements(&readers_); + } + // Removes and deletes the SocketReader. void RemoveSocketReader(SocketReader* reader); |