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

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

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 9 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
« no previous file with comments | « chrome/browser/translate/translate_manager_browsertest.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/translate/translate_manager_browsertest.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698