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

Unified Diff: chrome/browser/tab_contents/infobar.cc

Issue 7182004: infobars: Use TCW directly in InfoBar to remove the delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | « no previous file | chrome/browser/tab_contents/infobar_container.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/infobar.cc
diff --git a/chrome/browser/tab_contents/infobar.cc b/chrome/browser/tab_contents/infobar.cc
index 0a55bc5bcca745b3c51f1d5ccb69fc5dbb976d93..4330261ff6bb2237b93df09451f5b6cd8c883d40 100644
--- a/chrome/browser/tab_contents/infobar.cc
+++ b/chrome/browser/tab_contents/infobar.cc
@@ -8,6 +8,7 @@
#include "base/logging.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"
SkColor GetInfoBarTopColor(InfoBarDelegate::Type infobar_type) {
@@ -88,8 +89,7 @@ void InfoBar::AnimationProgressed(const ui::Animation* animation) {
}
void InfoBar::RemoveInfoBar() {
- if (container_)
- container_->RemoveDelegate(delegate_);
+ owner_->RemoveInfoBar(delegate_);
}
void InfoBar::SetBarTargetHeight(int height) {
« no previous file with comments | « no previous file | chrome/browser/tab_contents/infobar_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698