Index: chrome/browser/views/find_bar_win.cc |
=================================================================== |
--- chrome/browser/views/find_bar_win.cc (revision 10414) |
+++ chrome/browser/views/find_bar_win.cc (working copy) |
@@ -225,10 +225,12 @@ |
web_contents_ = contents; |
+ // Hide any visible find window from the previous tab if NULL |web_contents| |
+ // is passed in or if the find UI is not active in the new tab. |
+ if (IsVisible() && (!web_contents_ || !web_contents_->find_ui_active())) |
+ ShowWindow(SW_HIDE); |
+ |
if (web_contents_) { |
- if (IsVisible() && web_contents_ && !web_contents_->find_ui_active()) |
- ShowWindow(SW_HIDE); |
- |
NotificationService::current()->AddObserver( |
this, NotificationType::FIND_RESULT_AVAILABLE, |
Source<TabContents>(web_contents_)); |