| 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 8d3ffa9e1c6f8eb59d6bebf07239f698710148ee..196be0337b88fb75575fe3de374b2f95ec9661b8 100644
|
| --- a/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc
|
| +++ b/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc
|
| @@ -5,6 +5,8 @@
|
| #include "chrome/browser/ui/startup/session_crashed_infobar_delegate.h"
|
|
|
| #include "chrome/browser/infobars/infobar.h"
|
| +#include "chrome/browser/infobars/infobar_manager.h"
|
| +#include "chrome/browser/infobars/infobar_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/search/search.h"
|
| #include "chrome/browser/sessions/session_restore.h"
|
| @@ -34,14 +36,15 @@ void SessionCrashedInfoBarDelegate::Create(Browser* browser) {
|
|
|
| InfoBarService::FromWebContents(web_contents)->AddInfoBar(
|
| ConfirmInfoBarDelegate::CreateInfoBar(scoped_ptr<ConfirmInfoBarDelegate>(
|
| - new SessionCrashedInfoBarDelegate(profile))));
|
| + new SessionCrashedInfoBarDelegate(profile, web_contents))));
|
| }
|
|
|
| -SessionCrashedInfoBarDelegate::SessionCrashedInfoBarDelegate(Profile* profile)
|
| - : ConfirmInfoBarDelegate(),
|
| +SessionCrashedInfoBarDelegate::SessionCrashedInfoBarDelegate(
|
| + Profile* profile,
|
| + content::WebContents* web_contents)
|
| + : ContentConfirmInfoBarDelegate(web_contents),
|
| accepted_(false),
|
| - profile_(profile) {
|
| -}
|
| + profile_(profile) {}
|
|
|
| SessionCrashedInfoBarDelegate::~SessionCrashedInfoBarDelegate() {
|
| // If the info bar wasn't accepted, it was either dismissed or expired. In
|
|
|