summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager_resource_providers.cc
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-08 14:49:56 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-08 14:49:56 +0000
commita9348447e45b41890143f8e3460172e41e4a40c6 (patch)
treeb05f849d617439ccaab9b0853d2b6ac16774a137 /chrome/browser/task_manager_resource_providers.cc
parent7340a68ff7f45460c0a71f1397737079cbf4d59d (diff)
downloadchromium_src-a9348447e45b41890143f8e3460172e41e4a40c6.zip
chromium_src-a9348447e45b41890143f8e3460172e41e4a40c6.tar.gz
chromium_src-a9348447e45b41890143f8e3460172e41e4a40c6.tar.bz2
Remove our only use of dynamic_cast, which is not needed.
We don't want to ever use RTTI. This was casting a WebContents to a TabContents, which is a simple and safe upcase, since WebContents derives from TabContents. It should have just been a static_cast. Review URL: http://codereview.chromium.org/62147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager_resource_providers.cc')
-rw-r--r--chrome/browser/task_manager_resource_providers.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/task_manager_resource_providers.cc b/chrome/browser/task_manager_resource_providers.cc
index 24a8f9a..593befc 100644
--- a/chrome/browser/task_manager_resource_providers.cc
+++ b/chrome/browser/task_manager_resource_providers.cc
@@ -77,7 +77,7 @@ HANDLE TaskManagerWebContentsResource::GetProcess() const {
}
TabContents* TaskManagerWebContentsResource::GetTabContents() const {
- return dynamic_cast<TabContents*>(web_contents_);
+ return static_cast<TabContents*>(web_contents_);
}
////////////////////////////////////////////////////////////////////////////////