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

Unified Diff: chrome/browser/infobars/infobar_container.cc

Issue 14241006: Eliminate InfoBarTabHelper. Make InfoBarService a concrete class. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 months 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/infobars/infobar_container.cc
===================================================================
--- chrome/browser/infobars/infobar_container.cc (revision 195011)
+++ chrome/browser/infobars/infobar_container.cc (working copy)
@@ -70,12 +70,11 @@
registrar_.Add(this, chrome::NOTIFICATION_TAB_CONTENTS_INFOBAR_REPLACED,
source);
- for (size_t i = 0; i < infobar_service_->GetInfoBarCount(); ++i) {
+ for (size_t i = 0; i < infobar_service_->infobar_count(); ++i) {
// As when we removed the infobars above, we prevent callbacks to
// OnInfoBarAnimated() for each infobar.
AddInfoBar(
- infobar_service_->GetInfoBarDelegateAt(i)->CreateInfoBar(
- infobar_service_),
+ infobar_service_->infobar_at(i)->CreateInfoBar(infobar_service_),
i, false, NO_CALLBACK);
}
}

Powered by Google App Engine
This is Rietveld 408576698