diff options
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); |