Index: chrome/browser/ui/views/find_bar_view.cc |
diff --git a/chrome/browser/ui/views/find_bar_view.cc b/chrome/browser/ui/views/find_bar_view.cc |
index 7cf53c30ff5457947fd74990d30f6ce57e8b1039..40b16b7009903039c3a98002940b58c329edae42 100644 |
--- a/chrome/browser/ui/views/find_bar_view.cc |
+++ b/chrome/browser/ui/views/find_bar_view.cc |
@@ -605,9 +605,7 @@ void FindBarView::Find(const base::string16& search_text) { |
} |
void FindBarView::UpdateMatchCountAppearance(bool no_match) { |
- // Enable the buttons if there is a match or if there is a match count text |
- // set (from a prepopulated view). |
- bool enable_buttons = !match_count_text_->text().empty() || !no_match; |
+ bool enable_buttons = !match_count_text_->text().empty() && !no_match; |
find_previous_button_->SetEnabled(enable_buttons); |
find_next_button_->SetEnabled(enable_buttons); |