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

Unified Diff: chrome/browser/tab_contents/infobar.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/tab_contents/infobar.cc
diff --git a/chrome/browser/tab_contents/infobar.cc b/chrome/browser/tab_contents/infobar.cc
index d8dacb22842e8a740f46828265e50fcf135685ef..b20bd8dd6d5fe435743980091e6406a4cdff4f8a 100644
--- a/chrome/browser/tab_contents/infobar.cc
+++ b/chrome/browser/tab_contents/infobar.cc
@@ -8,6 +8,7 @@
#include "build/build_config.h"
#include "base/logging.h"
+#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/tab_contents/infobar_container.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "ui/base/animation/slide_animation.h"
@@ -104,7 +105,7 @@ void InfoBar::RemoveSelf() {
// |owner_| can be NULL here, e.g. because the user clicks the close button
// when the infobar is already closing.
if (delegate_ && owner_)
- owner_->RemoveInfoBar(delegate_);
+ owner_->infobar_tab_helper()->RemoveInfoBar(delegate_);
}
void InfoBar::SetBarTargetHeight(int height) {

Powered by Google App Engine
This is Rietveld 408576698