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

Unified Diff: chrome/browser/google/google_url_tracker.cc

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update 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
Index: chrome/browser/google/google_url_tracker.cc
diff --git a/chrome/browser/google/google_url_tracker.cc b/chrome/browser/google/google_url_tracker.cc
index dd719fb83dc1d7d7ed36ebee7a9908ed67cea46e..8c0bf46ea03e9ad018f1e25b3a85edc406840998 100644
--- a/chrome/browser/google/google_url_tracker.cc
+++ b/chrome/browser/google/google_url_tracker.cc
@@ -12,6 +12,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/google/google_util.h"
+#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
@@ -36,7 +37,7 @@ InfoBarDelegate* CreateInfobar(TabContents* tab_contents,
google_url_tracker, new_google_url);
TabContentsWrapper* wrapper =
Peter Kasting 2011/08/31 18:47:32 Nit: Just combine these two lines
TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
- wrapper->AddInfoBar(infobar);
+ wrapper->infobar_tab_helper()->AddInfoBar(infobar);
return infobar;
}

Powered by Google App Engine
This is Rietveld 408576698