Add virtual dtor for TaskManager::ResourceProvider.
It has virtual methods but no virtual dtor. This change may help
fix memory leaks which appeared after adding unit tests for TaskManager.
Review URL: http://codereview.chromium.org/100041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14599 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h
index 866246c..106aeaa 100644
--- a/chrome/browser/task_manager.h
+++ b/chrome/browser/task_manager.h
@@ -84,6 +84,8 @@
// MessageLoop::InvokeLater().
class ResourceProvider : public base::RefCounted<ResourceProvider> {
public:
+ virtual ~ResourceProvider() {}
+
// Should return the resource associated to the specified ids, or NULL if
// the resource does not belong to this provider.
virtual TaskManager::Resource* GetResource(int process_id,