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

Unified Diff: chrome/browser/ui/find_bar/find_bar_controller.cc

Issue 498133002: Findbox should disappear once we reload and open new tab and come back to previous tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/find_bar/find_bar_controller.cc
diff --git a/chrome/browser/ui/find_bar/find_bar_controller.cc b/chrome/browser/ui/find_bar/find_bar_controller.cc
index 713c3fa0984cbf5303fb1af640a47d0266e9b60c..dd6eb080f5e073c65c7b3ca05142285298bf556a 100644
--- a/chrome/browser/ui/find_bar/find_bar_controller.cc
+++ b/chrome/browser/ui/find_bar/find_bar_controller.cc
@@ -120,7 +120,8 @@ void FindBarController::ChangeWebContents(WebContents* contents) {
// reason.
find_bar_->Show(false);
}
-
+ // Clearing the count and previous results.
+ find_tab_helper->StopFinding(kClearSelectionOnPage);
Finnur 2014/08/25 10:50:41 This fix isn't correct. This breaks the following
Deepak 2014/08/25 14:22:42 Thanks for review, I will modify my patch, conside
UpdateFindBarForCurrentResult();
find_bar_->UpdateFindBarForChangedWebContents();
}
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698