| Index: chrome/browser/tab_contents/confirm_infobar_delegate.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents/confirm_infobar_delegate.cc (revision 89836)
|
| +++ chrome/browser/tab_contents/confirm_infobar_delegate.cc (working copy)
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
|
|
|
| +#include "content/browser/tab_contents/navigation_details.h"
|
| #include "content/browser/tab_contents/tab_contents.h"
|
| #include "grit/generated_resources.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| @@ -50,6 +51,13 @@
|
| (confirm_delegate->GetMessageText() == GetMessageText());
|
| }
|
|
|
| +bool ConfirmInfoBarDelegate::ShouldExpire(
|
| + const content::LoadCommittedDetails& details) const {
|
| + if (details.did_replace_entry)
|
| + return false;
|
| + return InfoBarDelegate::ShouldExpire(details);
|
| +}
|
| +
|
| ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() {
|
| return this;
|
| }
|
|
|