From 126f4120902008da93759d7256c87e1e6d3ae70b Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Tue, 5 May 2009 02:40:07 +0000 Subject: FindBarView::UpdateForResult is not a good place to beep if nothing was found on the page. The reason is that it is gets called when you switch from one tab to the other. I've added a function to FindBar that the controller can call and each platform can implement whatever sound they want to use. BUG=10823 TEST=Open google.com, search for z0, it should beep (no matches). Open new tab, switch back to the old tab and it should not beep. Review URL: http://codereview.chromium.org/99372 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15269 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/find_bar_view.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'chrome/browser/views/find_bar_view.cc') diff --git a/chrome/browser/views/find_bar_view.cc b/chrome/browser/views/find_bar_view.cc index 4aaccee..2869cff1 100644 --- a/chrome/browser/views/find_bar_view.cc +++ b/chrome/browser/views/find_bar_view.cc @@ -231,7 +231,6 @@ void FindBarView::UpdateForResult(const FindNotificationDetails& result, match_count_text_->set_background( views::Background::CreateSolidBackground(kBackgroundColorNoMatch)); match_count_text_->SetColor(kTextColorNoMatch); - MessageBeep(MB_OK); } // Make sure Find Next and Find Previous are enabled if we found any matches. -- cgit v1.1