| Index: chrome/browser/ui/startup/session_crashed_prompt.cc
|
| diff --git a/chrome/browser/ui/startup/session_crashed_prompt.cc b/chrome/browser/ui/startup/session_crashed_prompt.cc
|
| index 855e4d9f29540b2b8614a84df40dd369d9c62297..6cf0620354e951d202e35182ea3b4d1c3a80a265 100644
|
| --- a/chrome/browser/ui/startup/session_crashed_prompt.cc
|
| +++ b/chrome/browser/ui/startup/session_crashed_prompt.cc
|
| @@ -59,7 +59,7 @@ SessionCrashedInfoBarDelegate::SessionCrashedInfoBarDelegate(
|
| : ConfirmInfoBarDelegate(infobar_helper),
|
| accepted_(false),
|
| removed_notification_received_(false),
|
| - browser_(browser::FindBrowserWithWebContents(owner()->web_contents())) {
|
| + browser_(browser::FindBrowserWithWebContents(owner()->GetWebContents())) {
|
| // TODO(pkasting,marja): Once InfoBars own they delegates, this is not needed
|
| // any more. Then we can rely on delegates getting destroyed, and we can
|
| // initiate the session storage scavenging only in the destructor. (Currently,
|
| @@ -143,7 +143,7 @@ void ShowSessionCrashedPrompt(Browser* browser) {
|
| return;
|
|
|
| // Don't show the info-bar if there are already info-bars showing.
|
| - if (tab->infobar_tab_helper()->infobar_count() > 0)
|
| + if (tab->infobar_tab_helper()->GetInfoBarCount() > 0)
|
| return;
|
|
|
| tab->infobar_tab_helper()->AddInfoBar(
|
|
|