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

Unified Diff: chrome/browser/omnibox_search_hint.cc

Issue 6883299: Hide translate infobar on programmatic navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update testcase. 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/omnibox_search_hint.cc
diff --git a/chrome/browser/omnibox_search_hint.cc b/chrome/browser/omnibox_search_hint.cc
index 42f7de1c9940e97b60cde006f9324d0400a1a022..4191c9025eab4f8da69a6492e7a38ed0032b5ef5 100644
--- a/chrome/browser/omnibox_search_hint.cc
+++ b/chrome/browser/omnibox_search_hint.cc
@@ -100,7 +100,7 @@ HintInfoBar::~HintInfoBar() {
bool HintInfoBar::ShouldExpire(
const NavigationController::LoadCommittedDetails& details) const {
- return should_expire_;
+ return details.is_user_initiated_main_frame_load() && should_expire_;
}
void HintInfoBar::InfoBarDismissed() {
« no previous file with comments | « no previous file | chrome/browser/tab_contents/infobar_delegate.h » ('j') | chrome/browser/tab_contents/infobar_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698