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

Issue 2839713002: Fix extraneous beeps on empty page search. (Closed)

Created:
3 years, 8 months ago by Sigurður Ásgeirsson
Modified:
3 years, 8 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix extraneous beeps on empty page search. As of https://crrev.com/3ac612d592cd42355a432c8d307051d299d79768 a find-in-page can issue multiple "final updates" if the document changes. Each time a final update with zero results occurs, there is an audbible notification which is a nuisance beyond the first one. Particularly bothersome is that most or all pages cause a ding as you close them if they have an active find in page with zero results. BUG=682299 Review-Url: https://codereview.chromium.org/2839713002 Cr-Commit-Position: refs/heads/master@{#467417} Committed: https://chromium.googlesource.com/chromium/src/+/59192dd2dd5d23372ca3ace498327f1c690e61ac

Patch Set 1 #

Patch Set 2 : Clear notification state when find session ends. #

Total comments: 3

Patch Set 3 : Rename last_reported_empty_search_ to alerted_search_. #

Patch Set 4 : Meet Peter in the middle. #

Patch Set 5 : Un-reverse the conditional I broke last patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -3 lines) Patch
M chrome/browser/ui/find_bar/find_bar_controller.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/find_bar/find_bar_controller.cc View 1 2 3 4 2 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
Sigurður Ásgeirsson
Paul, please take a look - I think this is along the lines you were ...
3 years, 8 months ago (2017-04-24 18:22:15 UTC) #4
elawrence
On 2017/04/24 18:22:15, Sigurður Ásgeirsson wrote: > Paul, please take a look - I think ...
3 years, 8 months ago (2017-04-24 18:50:27 UTC) #5
Sigurður Ásgeirsson
Good point, this also fails to notify on empty results if the search is cancelled ...
3 years, 8 months ago (2017-04-24 20:18:57 UTC) #8
Sigurður Ásgeirsson
Now clears the notification state when the session ends. This avoids conflating the notification state ...
3 years, 8 months ago (2017-04-24 20:31:47 UTC) #9
paulmeyer
On 2017/04/24 20:31:47, Sigurður Ásgeirsson wrote: > Now clears the notification state when the session ...
3 years, 8 months ago (2017-04-24 21:35:47 UTC) #10
Peter Kasting
Please add a test for this. LGTM once that's in place. https://codereview.chromium.org/2839713002/diff/20001/chrome/browser/ui/find_bar/find_bar_controller.cc File chrome/browser/ui/find_bar/find_bar_controller.cc (right): ...
3 years, 8 months ago (2017-04-24 22:25:46 UTC) #11
elawrence
On 2017/04/24 20:31:47, Sigurður Ásgeirsson wrote: > Now clears the notification state when the session ...
3 years, 8 months ago (2017-04-25 16:02:45 UTC) #12
Sigurður Ásgeirsson
> Can you confirm that your change works in the following case on Windows (where ...
3 years, 8 months ago (2017-04-26 16:52:41 UTC) #13
Sigurður Ásgeirsson
I'd love some pointers on how to write a test for this. It doesn't look ...
3 years, 8 months ago (2017-04-26 16:53:36 UTC) #14
Peter Kasting
I enjoy principled discussions :) (To be super clear, I am fine with this change ...
3 years, 8 months ago (2017-04-26 17:22:12 UTC) #15
Sigurður Ásgeirsson
Thanks Peter, I'd like to meet you in the middle on this one. Per our ...
3 years, 8 months ago (2017-04-26 18:06:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2839713002/60001
3 years, 8 months ago (2017-04-26 18:07:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2839713002/80001
3 years, 8 months ago (2017-04-26 19:30:43 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 19:42:02 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/59192dd2dd5d23372ca3ace49832...

Powered by Google App Engine
This is Rietveld 408576698