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

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: Created 9 years, 8 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 27c2ea6ed53fb40afe98735bbf6bf8cb48afc02f..012d00173c25667b09506a9c8835c7488ba3b35f 100644
--- a/chrome/browser/omnibox_search_hint.cc
+++ b/chrome/browser/omnibox_search_hint.cc
@@ -99,7 +99,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