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

Unified Diff: chrome/browser/ui/browser.cc

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 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/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 8254e5134b47ce5b74cdc40de127b47572b5065f..8a051826364c999f9b5f9066881b688c6c2e593b 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -915,7 +915,7 @@ void Browser::RegisterProtocolHandlerHelper(WebContents* web_contents,
registry,
handler);
- for (size_t i = 0; i < infobar_helper->infobar_count(); i++) {
+ for (size_t i = 0; i < infobar_helper->GetInfoBarCount(); i++) {
InfoBarDelegate* delegate = infobar_helper->GetInfoBarDelegateAt(i);
RegisterProtocolHandlerInfoBarDelegate* cast_delegate =
delegate->AsRegisterProtocolHandlerInfoBarDelegate();
@@ -962,7 +962,7 @@ void Browser::RequestMediaAccessPermissionHelper(
if (!controller->DismissInfoBarAndTakeActionOnSettings()) {
InfoBarTabHelper* infobar_helper = tab->infobar_tab_helper();
InfoBarDelegate* old_infobar = NULL;
- for (size_t i = 0; i < infobar_helper->infobar_count(); ++i) {
+ for (size_t i = 0; i < infobar_helper->GetInfoBarCount(); ++i) {
old_infobar = infobar_helper->GetInfoBarDelegateAt(i)->
AsMediaStreamInfoBarDelegate();
if (old_infobar)

Powered by Google App Engine
This is Rietveld 408576698