summaryrefslogtreecommitdiffstats
path: root/chrome/browser/process_singleton_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/process_singleton_linux.cc')
-rw-r--r--chrome/browser/process_singleton_linux.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/process_singleton_linux.cc b/chrome/browser/process_singleton_linux.cc
index 046d7f9..af2a519 100644
--- a/chrome/browser/process_singleton_linux.cc
+++ b/chrome/browser/process_singleton_linux.cc
@@ -402,6 +402,10 @@ 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);
@@ -426,12 +430,6 @@ class ProcessSingleton::LinuxWatcher
}
private:
- friend class base::RefCountedThreadSafe<ProcessSingleton::LinuxWatcher>;
-
- virtual ~LinuxWatcher() {
- STLDeleteElements(&readers_);
- }
-
// Removes and deletes the SocketReader.
void RemoveSocketReader(SocketReader* reader);