summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/hung_plugin_tab_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/hung_plugin_tab_helper.cc')
-rw-r--r--chrome/browser/ui/hung_plugin_tab_helper.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/ui/hung_plugin_tab_helper.cc b/chrome/browser/ui/hung_plugin_tab_helper.cc
index ffdf785..dd6d59d 100644
--- a/chrome/browser/ui/hung_plugin_tab_helper.cc
+++ b/chrome/browser/ui/hung_plugin_tab_helper.cc
@@ -10,7 +10,7 @@
#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/browser_child_process_host_iterator.h"
@@ -283,9 +283,8 @@ void HungPluginTabHelper::CloseBar(PluginState* state) {
}
InfoBarTabHelper* HungPluginTabHelper::GetInfoBarHelper() {
- TabContentsWrapper* tcw =
- TabContentsWrapper::GetCurrentWrapperForContents(web_contents());
- if (!tcw)
+ TabContents* tab_contents = TabContents::FromWebContents(web_contents());
+ if (!tab_contents)
return NULL;
- return tcw->infobar_tab_helper();
+ return tab_contents->infobar_tab_helper();
}