Index: webkit/tools/test_shell/simple_file_writer.cc |
diff --git a/webkit/tools/test_shell/simple_file_writer.cc b/webkit/tools/test_shell/simple_file_writer.cc |
index 86be501862125da1e731eb3841e5d96a7a578560..6689bf1b4916f1a789020002f51007ef2057ff0d 100644 |
--- a/webkit/tools/test_shell/simple_file_writer.cc |
+++ b/webkit/tools/test_shell/simple_file_writer.cc |
@@ -40,9 +40,6 @@ class SimpleFileWriter::IOThreadProxy |
main_thread_ = base::MessageLoopProxy::current(); |
} |
- virtual ~IOThreadProxy() { |
- } |
- |
void Truncate(const GURL& path, int64 offset) { |
if (!io_thread_->BelongsToCurrentThread()) { |
io_thread_->PostTask( |
@@ -85,6 +82,9 @@ class SimpleFileWriter::IOThreadProxy |
} |
private: |
+ friend class base::RefCountedThreadSafe<IOThreadProxy>; |
+ virtual ~IOThreadProxy() {} |
+ |
FileSystemOperationInterface* GetNewOperation(const GURL& path) { |
return file_system_context_->CreateFileSystemOperation(path, io_thread_); |
} |