Index: chrome/browser/ui/startup/session_crashed_infobar_delegate.cc |
diff --git a/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc b/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc |
index ad724df5c412d12bdc0b4ca0da3218837588b14b..6e0b21285b8d16b387ee9fc713ad5f74a0ae56f6 100644 |
--- a/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc |
+++ b/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc |
@@ -73,7 +73,9 @@ base::string16 SessionCrashedInfoBarDelegate::GetButtonLabel( |
bool SessionCrashedInfoBarDelegate::Accept() { |
uint32 behavior = 0; |
- Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); |
+ content::WebContents* web_contents = |
+ InfoBarService::WebContentsFromInfoBar(infobar()); |
+ Browser* browser = chrome::FindBrowserWithWebContents(web_contents); |
if (browser->tab_strip_model()->count() == 1) { |
const content::WebContents* active_tab = |
browser->tab_strip_model()->GetWebContentsAt(0); |