| Index: chrome/browser/ssl/ssl_tab_helper.cc
|
| diff --git a/chrome/browser/ssl/ssl_tab_helper.cc b/chrome/browser/ssl/ssl_tab_helper.cc
|
| index 51612f4517a21557704f87f2027b471c0673fd3c..ab2e2ad714f3808fc84f432dac44c1915afdc2ec 100644
|
| --- a/chrome/browser/ssl/ssl_tab_helper.cc
|
| +++ b/chrome/browser/ssl/ssl_tab_helper.cc
|
| @@ -118,8 +118,10 @@ base::string16 SSLCertResultInfoBarDelegate::GetButtonLabel(
|
| }
|
|
|
| bool SSLCertResultInfoBarDelegate::Accept() {
|
| - ShowCertificateViewer(web_contents(),
|
| - web_contents()->GetView()->GetTopLevelNativeWindow(),
|
| + content::WebContents* web_contents =
|
| + InfoBarService::WebContentsFromInfoBar(infobar());
|
| + ShowCertificateViewer(web_contents,
|
| + web_contents->GetView()->GetTopLevelNativeWindow(),
|
| cert_.get());
|
| return false; // Hiding the infobar just as the dialog opens looks weird.
|
| }
|
|
|