| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index daffdc378be00d603ae285b97a9bf9b89e2e390a..1a529ea73edaa779171262d31123a3aa8c5d6fd5 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -916,7 +916,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();
|
| @@ -963,7 +963,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)
|
|
|