diff options
Diffstat (limited to 'chrome/browser/managed_mode/managed_mode_interstitial.cc')
-rw-r--r-- | chrome/browser/managed_mode/managed_mode_interstitial.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/managed_mode/managed_mode_interstitial.cc b/chrome/browser/managed_mode/managed_mode_interstitial.cc index 11b796d..18cb691 100644 --- a/chrome/browser/managed_mode/managed_mode_interstitial.cc +++ b/chrome/browser/managed_mode/managed_mode_interstitial.cc @@ -9,6 +9,7 @@ #include "base/prefs/pref_service.h" #include "base/strings/utf_string_conversions.h" #include "base/values.h" +#include "chrome/browser/infobars/infobar.h" #include "chrome/browser/infobars/infobar_delegate.h" #include "chrome/browser/infobars/infobar_service.h" #include "chrome/browser/managed_mode/managed_user_service.h" @@ -67,7 +68,7 @@ ManagedModeInterstitial::ManagedModeInterstitial( } details.type = content::NAVIGATION_TYPE_NEW_PAGE; for (int i = service->infobar_count() - 1; i >= 0; --i) { - if (service->infobar_at(i)->ShouldExpire(details)) + if (service->infobar_at(i)->delegate()->ShouldExpire(details)) service->RemoveInfoBar(service->infobar_at(i)); } } |