diff options
Diffstat (limited to 'chrome/browser/translate/translate_browsertest.cc')
-rw-r--r-- | chrome/browser/translate/translate_browsertest.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/translate/translate_browsertest.cc b/chrome/browser/translate/translate_browsertest.cc index c7fa412..6b59537 100644 --- a/chrome/browser/translate/translate_browsertest.cc +++ b/chrome/browser/translate/translate_browsertest.cc @@ -7,6 +7,7 @@ #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include "chrome/browser/chrome_notification_types.h" +#include "chrome/browser/infobars/infobar.h" #include "chrome/browser/infobars/infobar_service.h" #include "chrome/browser/translate/translate_infobar_delegate.h" #include "chrome/browser/translate/translate_script.h" @@ -90,13 +91,13 @@ class TranslateBrowserTest : public InProcessBrowserTest { // |kTranslateSecurityOrigin| flag specified in SetUpCommandLine(). // This infobar appears in all tests of TranslateBrowserTest and can be // ignored here. - ConfirmInfoBarDelegate* confirm = - infobar_service_->infobar_at(i)->AsConfirmInfoBarDelegate(); + ConfirmInfoBarDelegate* confirm = infobar_service_->infobar_at(i)-> + delegate()->AsConfirmInfoBarDelegate(); if (confirm) continue; - TranslateInfoBarDelegate* translate = - infobar_service_->infobar_at(i)->AsTranslateInfoBarDelegate(); + TranslateInfoBarDelegate* translate = infobar_service_->infobar_at(i)-> + delegate()->AsTranslateInfoBarDelegate(); if (translate) { EXPECT_FALSE(delegate) << "multiple infobars are shown unexpectedly"; delegate = translate; |