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

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

Issue 6883299: Hide translate infobar on programmatic navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Less invasive change Created 9 years, 7 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_delegate.cc
diff --git a/chrome/browser/tab_contents/infobar_delegate.cc b/chrome/browser/tab_contents/infobar_delegate.cc
index d0b04b7af1d027879735688e938339a345ec7936..d5ef1b869f80da4417afb0a4f7aff946fdd73b47 100644
--- a/chrome/browser/tab_contents/infobar_delegate.cc
+++ b/chrome/browser/tab_contents/infobar_delegate.cc
@@ -26,6 +26,10 @@ bool InfoBarDelegate::ShouldExpire(
PageTransition::RELOAD);
}
+bool InfoBarDelegate::DoNotCloseOnProgrammaticNavigation() const {
+ return true;
brettw 2011/05/13 17:04:45 Indentation messed up.
+}
+
void InfoBarDelegate::InfoBarDismissed() {
}

Powered by Google App Engine
This is Rietveld 408576698