Index: chrome/browser/find_bar_controller.cc |
=================================================================== |
--- chrome/browser/find_bar_controller.cc (revision 30046) |
+++ chrome/browser/find_bar_controller.cc (working copy) |
@@ -121,7 +121,10 @@ |
UpdateFindBarForCurrentResult(); |
if (tab_contents_->find_result().final_update() && |
tab_contents_->find_result().number_of_matches() == 0) { |
- find_bar_->AudibleAlert(); |
+ const string16& last_search = tab_contents_->previous_find_text(); |
+ const string16& current_search = tab_contents_->find_text(); |
+ if (last_search.find(current_search) != 0) |
Peter Kasting
2009/10/26 21:04:33
Nit: If you want, you can inline those temps into
|
+ find_bar_->AudibleAlert(); |
} |
} |
} else if (type == NotificationType::NAV_ENTRY_COMMITTED) { |