Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4164)

Unified Diff: chrome/browser/managed_mode/managed_mode_interstitial.cc

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/managed_mode/managed_mode_interstitial.cc
===================================================================
--- chrome/browser/managed_mode/managed_mode_interstitial.cc (revision 238220)
+++ chrome/browser/managed_mode/managed_mode_interstitial.cc (working copy)
@@ -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 @@
}
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));
}
}

Powered by Google App Engine
This is Rietveld 408576698