Index: chrome/browser/media/webrtc_browsertest_base.cc |
diff --git a/chrome/browser/media/webrtc_browsertest_base.cc b/chrome/browser/media/webrtc_browsertest_base.cc |
index 21c18b502908296d9aebe293fcec83b007c454a3..1a9695e38e8a87825b11fa3311aba4b1417a91fd 100644 |
--- a/chrome/browser/media/webrtc_browsertest_base.cc |
+++ b/chrome/browser/media/webrtc_browsertest_base.cc |
@@ -8,6 +8,7 @@ |
#include "base/strings/stringprintf.h" |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/infobars/infobar.h" |
+#include "chrome/browser/infobars/infobar_manager.h" |
#include "chrome/browser/infobars/infobar_service.h" |
#include "chrome/browser/media/media_stream_infobar_delegate.h" |
#include "chrome/browser/media/webrtc_browsertest_common.h" |
@@ -209,7 +210,7 @@ void WebRtcTestBase::CloseInfoBarInTab( |
InfoBarService* infobar_service = |
InfoBarService::FromWebContents(tab_contents); |
- infobar_service->RemoveInfoBar(infobar); |
+ infobar_service->infobar_manager().RemoveInfoBar(infobar); |
infobar_removed.Wait(); |
} |