Index: chrome/browser/ui/autologin_infobar_delegate.cc |
diff --git a/chrome/browser/ui/autologin_infobar_delegate.cc b/chrome/browser/ui/autologin_infobar_delegate.cc |
index b756933da7a99c3ba6ab153e3e5d2bbfaf85c348..0cfe989981ec7aa281c88e50a89b59c3412f0d7d 100644 |
--- a/chrome/browser/ui/autologin_infobar_delegate.cc |
+++ b/chrome/browser/ui/autologin_infobar_delegate.cc |
@@ -10,6 +10,7 @@ |
#include "base/string_split.h" |
#include "base/stringprintf.h" |
#include "base/utf_string_conversions.h" |
+#include "chrome/browser/infobars/infobar_tab_helper.h" |
#include "chrome/browser/net/gaia/token_service.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -244,7 +245,7 @@ void AutoLoginInfoBarDelegate::Observe(int type, |
const NotificationDetails& details) { |
if (type == content::NOTIFICATION_LOAD_STOP) { |
// The wrapper takes ownership of this delegate. |
- tab_contents_wrapper_->AddInfoBar(this); |
+ tab_contents_wrapper_->infobar_tab_helper()->AddInfoBar(this); |
registrar_.RemoveAll(); |
} else if (type == content::NOTIFICATION_TAB_CONTENTS_DESTROYED) { |
// The tab contents was destroyed before the naviagation completed, so |