Index: chrome/browser/ui/collected_cookies_infobar_delegate.cc |
diff --git a/chrome/browser/ui/collected_cookies_infobar_delegate.cc b/chrome/browser/ui/collected_cookies_infobar_delegate.cc |
index a0d5cfb54dd93ed47a6c20faf6e30b3fccac95e9..92310cea479b07d1d06d04728cde1257f2a1d492 100644 |
--- a/chrome/browser/ui/collected_cookies_infobar_delegate.cc |
+++ b/chrome/browser/ui/collected_cookies_infobar_delegate.cc |
@@ -50,6 +50,8 @@ base::string16 CollectedCookiesInfoBarDelegate::GetButtonLabel( |
} |
bool CollectedCookiesInfoBarDelegate::Accept() { |
- web_contents()->GetController().Reload(true); |
+ content::WebContents* web_contents = |
+ InfoBarService::WebContentsFromInfoBar(infobar()); |
+ web_contents->GetController().Reload(true); |
return true; |
} |